Android runs OpenGL ES 1.1 or 1.0?

cjs*_*rio 3 android opengl-es

I'm developing a native app for Android and I'm trying to use functions such as glIsEnabled which appear to be only available in OpenGL ES 1.1. Google's docs claim that NDK 1.6R1 supports OpenGL ES v1.1 but the function call fails with "unimplemented Open GL ES API" and if i do a glGetString(GL_VERSION) it returns "OpenGL ES 1.0 CM" as the version.

So if 1.1 is available, what do I have to link against to get it or what else do i need to change to get it?

Cas*_*eyB 11

如果你想在所有Android设备上运行,你不能指望比OpenGL ES 1.0更高的东西.但是如果你绝对需要一些OpenGL ES 1.1方法,你可以在清单文件中定义一个minGLVersion,它会阻止人们在不支持的设备上下载它.看起来像这样:

// the high 16 bit define the Major Version,
// the low 16 bits define the Minor Version,
// so this is OpenGL ES 1.1
<uses-feature android:glEsVersion="0x00010001" />
Run Code Online (Sandbox Code Playgroud)


Bri*_*nna 5

Android 文档说(3D with OpenGL):

最后,请注意,尽管 Android 确实包含对 OpenGL ES 1.1 的一些基本支持,但该支持并不完整,目前不应依赖该支持。

我猜这和NDK是一样的。