27 #include <android/log.h>
37 case 0:
return "NO_ERROR";
38 case 0x0500:
return "INVALID_ENUM";
39 case 0x0501:
return "INVALID_VALUE";
40 case 0x0502:
return "INVALID_OPERATION";
41 case 0x0503:
return "STACK_OVERFLOW";
42 case 0x0504:
return "STACK_UNDERFLOW";
43 case 0x0505:
return "OUT_OF_MEMORY";
44 case 0x0506:
return "INVALID_FRAMEBUFFER_OPERATION";
45 default:
return "UNKNOWN";
51 GLenum error = glGetError();
52 if (error != GL_NO_ERROR)
71 (JNIEnv *env, jclass jcls)
88 (JNIEnv * env, jobject obj, jfloat
x, jfloat
y)
94 (JNIEnv * env, jobject obj, jfloat x, jfloat y)
void on_pointer_down(float x, float y)
GLint GLsizei GLsizei height
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_onpointerup(JNIEnv *env, jobject obj, jfloat x, jfloat y)
void on_pointer_up(float x, float y)
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_uninit(JNIEnv *, jclass)
const char * get_gl_error_msg(GLenum code)
void init_app(int width, int height)
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_onpointerdown(JNIEnv *env, jobject obj, jfloat x, jfloat y)
GLint GLint GLint GLint GLint x
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_init(JNIEnv *env, jclass jcls, jint width, jint height)
typedef GLenum(GL_APIENTRYP PFNGLGETGRAPHICSRESETSTATUSKHRPROC)(void)
double get_elapsed_time()
void render_app(float dt)
JNIEXPORT void JNICALL Java_com_arm_malideveloper_openglessdk_translucency_NativeLibrary_step(JNIEnv *env, jclass jcls)
void update_app(float dt)