Reputation: 3296
Would you please explain what is the problem with this simple code for determining OpenGL extensions :
String extensions = javax.microedition.khronos.opengles.GL10.glGetString(GL10.GL_EXTENSIONS);
If I put this in the code, I'm getting the error:
"Cannot make a static reference to the non-static method glGetString(int) from the type GL10"
So it just doesn't compile.
I'm using ADT 22.6.1
and also SDK 22.6.1
. The project doesn't create any OpenGL
-related classes, only gets the info.
Thanks
Upvotes: 1
Views: 1219
Reputation: 963
You can get this data from GL10 object, example: http://developer.android.com/reference/android/opengl/GLSurfaceView.Renderer.html#onSurfaceCreated(javax.microedition.khronos.opengles.GL10, javax.microedition.khronos.egl.EGLConfig)
Upvotes: 1