replicant-frameworks_native/opengl/tools/glgen/stubs/jsr239/glGetString.cpp
Jean-Baptiste Queru 9660d304ae donut snapshot
2009-05-20 11:28:04 -07:00

12 lines
297 B
C++

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