TYPE3
[iec.git] / src / type3_AndroidCloud / anbox-master / external / android-emugl / host / libs / libOpenGLESDispatch / gles3_only.entries
diff --git a/src/type3_AndroidCloud/anbox-master/external/android-emugl/host/libs/libOpenGLESDispatch/gles3_only.entries b/src/type3_AndroidCloud/anbox-master/external/android-emugl/host/libs/libOpenGLESDispatch/gles3_only.entries
new file mode 100644 (file)
index 0000000..2feb1b2
--- /dev/null
@@ -0,0 +1,18 @@
+!gles3_only
+
+# GLES 3.x functions required by the translator library.
+# Right now, this is only use to get glGetStringi() from the host GL library
+# in order to deal with the fact that glGetString(GL_EXTENSIONS) is obsolete
+# in OpenGL 3.0, and some drivers don't implement it anymore (i.e. the
+# function just returns NULL).
+
+%#include <GLES/gl.h>
+%
+%// Used to avoid adding GLES3/gl3.h to our headers.
+%#ifndef GL_NUM_EXTENSIONS
+%#define GL_NUM_EXTENSIONS  0x821D
+%#endif
+
+%typedef const GLubyte* GLconstubyteptr;
+
+GLconstubyteptr glGetStringi(GLenum name, GLint index);