Android OpenGL-ES VBO support or not?

OpenGL-ES support OpenGL-ES or not? How can I check this?

thanks

+4
source share
3 answers

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

gl.glGetString(GL10.GL_VERSION); 

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

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

 gl.glGetString(GL10.GL_EXTENSIONS); 

whether it contains ARB_vertex_buffer_object or not. It will probably be.

For (slightly) related information on the various GL features for Android devices, you can find some of them on this subject: OpenGL extensions available on different Android devices .

+6
source
 void draw(GL10 gl){ GL11 gl11 = (GL11)gl; ... gl11.glBindBuffer(...); } 
0
source

OpenGL ES 2.0 supports VBOs well, but in Android 2.2 there is a problem that misses api in the GLES20 class:

 public static native void glDrawElements( int mode, int count, int type, int offset ); 

The problem has been fixed with Android 2.3.

0
source

Source: https://habr.com/ru/post/1343797/


All Articles