2009-03-04 03:31:44 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
/* const GLubyte * glGetString ( GLenum name ) */
|
2009-05-20 18:28:04 +00:00
|
|
|
static
|
2009-03-04 03:31:44 +00:00
|
|
|
jstring
|
|
|
|
android_glGetString
|
|
|
|
(JNIEnv *_env, jobject _this, jint name) {
|
|
|
|
const char * chars = (const char *)glGetString((GLenum)name);
|
|
|
|
jstring output = _env->NewStringUTF(chars);
|
|
|
|
return output;
|
|
|
|
}
|