安卓的OpenGL-ES VBO支持或不?或不、OpenGL、ES、VBO

2023-09-05 09:30:28 作者:稳妥熟男

安卓的OpenGL-ES VBO支持或不?如何检查呢?

Android OpenGL-ES VBO support or not? How can i check this?

感谢

推荐答案

有些手机支持它,有些则没有。一般来说,维也纳各组织都必须在OpenGL 1.1,所以如果设备报告

Some phones support it, some do not. Generally, VBOs are mandatory in OpenGL 1.1, so if the device reports

gl.glGetString(GL10.GL_VERSION);

1.1或更高版本(你也可以编写应用程序清单文件,以便在1.1安装所需的),那么他们的支持。

as 1.1 or higher (you can also write the app manifest file so that 1.1 is required for the installation) then they are supported.

如果设备支持OpenGL ES 1.0只,您应该检查返回值

If the device support OpenGL ES 1.0 only, you should check the return value of

gl.glGetString(GL10.GL_EXTENSIONS);

是否含有 ARB_vertex_buffer_object 或没有。也许会的。

whether it contains ARB_vertex_buffer_object or not. Probably it will.

有关(略)关于Android设备的各种GL能力相关的信息,你可以找到一些在这个问题:OpenGL可在不同的Andr​​oid设备扩展程序。

For (slightly) related information about various GL capabilities of Android devices, you can find some at this question: OpenGL extensions available on different Android devices.