replicant-frameworks_native/opengl/tools/glgen/stubs/glGetString.cpp
2009-03-03 19:31:44 -08:00

11 lines
289 B
C++

#include <string.h>
/* const GLubyte * glGetString ( GLenum name ) */
jstring
android_glGetString
(JNIEnv *_env, jobject _this, jint name) {
const char * chars = (const char *)glGetString((GLenum)name);
jstring output = _env->NewStringUTF(chars);
return output;
}