Add glPixelZoom() binding

Used by the high DPI client patch.
master
Graham 4 years ago
parent fd392a59c1
commit 453289f189
  1. 8
      gl-natives/src/main/c/jaggl.c
  2. 8
      gl-natives/src/main/c/jaggl_opengl.h

@ -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);
}

@ -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

Loading…
Cancel
Save