问题标签 [opengl-es-2.0]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - 在 Windows 上开始使用 OpenGL ES 2.0
这是一个关于在 Windows 平台上构建简单的 OpenGL ES 2.0 程序所需步骤的非常具体的问题。环境是带有非托管 C++ 的 Visual Studio。
我访问了 Khronos.org 网站,坦率地说,发现它有点不透明,因为它读起来就像是标准机构编写的东西。我不想下载“参考”或“规范”等。
我正在寻找的只是将我从 A 带到 B 的链接和步骤。换句话说,“下载这些文件或在此 URL 上运行此设置。使用对这些库的引用创建一个新的 Visual Studio 项目。包括此标头文件。”
同样,我对 ES 2.0 很感兴趣。
ipad - iPad 上可用的最大纹理尺寸是多少?
有人知道 iPad 的最大纹理尺寸吗?我很难找到这个数字。
iphone - 如何使用 OpenGL ES 2.0 旋转对象?
在 OpenGL ES 1.1 中,您可以使用glRotatef()
旋转模型,但在 OpenGL ES 2.0 中不存在该功能。
因此,如何在 OpenGL ES 2.0 中执行旋转?
opengl-es - 如何在 OpenGL ES 2.0 中将纹理绘制为 2D 背景?
我刚刚开始使用 OpenGL ES 2.0,我想做的是创建一些简单的 2D 输出。给定 480x800 的分辨率,如何绘制背景纹理?
[我的开发环境是 Java / Android,所以直接相关的例子最好,但其他语言也可以。]
iphone - 在opengl es 2.0 iphone中使用深度缓冲区
我遵循了在 opengl es 1.1 中使用深度缓冲区的教程。但我使用opengl es 2.0。实现的代码导致错误:Failed to make complete framebuffer object 8cd6. 请参阅下面的实现代码:
问候尼古拉斯
opengl-es - How to create a multicolored squared grid in OpenGL ES 2.0?
Using Open GL ES 2.0, I want to create a large grid of squares, where each square can take a certain color as specified by a definition file. So this is not a simple checkerboard of only black and white squares...
What is the best way to do this in order to avoid artifacts?
Thanks in advance
opengl-es - 在模拟器上调用未实现的 OpenGL ES API 消息
我正在为 Android 2.2 开发一个 Android 应用程序。
当我在模拟器上运行使用 OpenGL ES 2.0 的程序时,出现以下错误:
调用未实现的 OpenGL ES API
但是,如果我在装有 Android 2.2 的物理设备上运行相同的程序,它就可以完美运行。
发生了什么?
谢谢。
java - 将 jshort 转换为无符号短
我正在开发一个使用一些本机调用的 Java 程序。
您知道转换jshort
为的简单方法unsigned short
吗?或者,我可以用作等效类型吗?
在本机代码中,我收到一个jshort
值,我需要将此值用作GLushort
.
有什么建议吗?
谢谢。
opengl-es-2.0 - OpenGL ES 2.0:属性未激活
阅读本书:OpenGL ES 2.0 Programming Guide (Addison-Wesley)。我已阅读以下内容:
“在附加到程序对象的顶点着色器中不存在或未激活的属性名称将被忽略。”
当一个属性不活跃时?
谢谢。
attributes - OpenGL ES 2.0: attribute not bound on vertex shader
I'm developing an Android application.
I have the following vertex shader.
And this is the fragment shader:
Is there any problem if I left vertexTexCoord unbound? I think I must use a different vertex and fragment shader if my model doesn't have a texture, isn't?
Thanks.