diff --git a/gl-natives/src/main/c/jaggl.c b/gl-natives/src/main/c/jaggl.c index de409ea..71b81f5 100644 --- a/gl-natives/src/main/c/jaggl.c +++ b/gl-natives/src/main/c/jaggl.c @@ -2662,3 +2662,11 @@ JNIEXPORT void JNICALL Java_jaggl_opengl_glViewport(JNIEnv *env, jobject obj, ji JAGGL_UNLOCK(env); } + +JNIEXPORT void JNICALL Java_jaggl_opengl_glPixelZoom(JNIEnv *env, jobject obj, jfloat xfactor, jfloat yfactor) { + JAGGL_LOCK(env); + + glPixelZoom((GLfloat) xfactor, (GLfloat) yfactor); + + JAGGL_UNLOCK(env); +} diff --git a/gl-natives/src/main/c/jaggl_opengl.h b/gl-natives/src/main/c/jaggl_opengl.h index 4b3a39e..9a2b2fa 100644 --- a/gl-natives/src/main/c/jaggl_opengl.h +++ b/gl-natives/src/main/c/jaggl_opengl.h @@ -1151,6 +1151,14 @@ JNIEXPORT void JNICALL Java_jaggl_opengl_glDrawArrays JNIEXPORT void JNICALL Java_jaggl_opengl_glLineWidth (JNIEnv *, jobject, jfloat); +/* + * Class: jaggl_opengl + * Method: glPixelZoom + * Signature: (FF)V + */ +JNIEXPORT void JNICALL Java_jaggl_opengl_glPixelZoom + (JNIEnv *, jobject, jfloat, jfloat); + #ifdef __cplusplus } #endif