sberezin
sberezin

Reputation: 3296

Android and OpenGL: can't call glGetString(..)

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

Answers (1)

Related Questions