replicant-frameworks_native/opengl/tools/glgen/stubs/egl/eglQueryString.cpp
Thomas Tafertshofer 66a42db8cb improve glgen tool to support EGL1.4
- added EGL1.4 bindings generation
- fixed bugs in GLES bindings

Bug: 6709865
Change-Id: I04ac63f652e1968a51eb833f47e00336ea449980
2012-07-10 15:49:43 -07:00

11 lines
385 B
C++

/* const char * eglQueryString ( EGLDisplay dpy, EGLint name ) */
static jstring
android_eglQueryString__Landroind_opengl_EGLDisplay_2I
(JNIEnv *_env, jobject _this, jobject dpy, jint name) {
const char* chars = (const char*) eglQueryString(
(EGLDisplay)fromEGLHandle(_env, egldisplayGetHandleID, dpy),
(EGLint)name
);
return _env->NewStringUTF(chars);
}