You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
api-impl: GLES20: add glReadPixels
This commit is contained in:
@@ -257,3 +257,12 @@ JNIEXPORT void JNICALL Java_android_opengl_GLES20_glFlush(JNIEnv *env, jclass th
|
||||
{
|
||||
glFlush();
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_opengl_GLES20_glReadPixels(JNIEnv *env, jclass this, jint x, jint y, jint width, jint height, jint format, jint type, jobject pixels_buf)
|
||||
{
|
||||
jarray array_ref;
|
||||
jbyte *array;
|
||||
GLvoid *pixels = get_nio_buffer(env, pixels_buf, &array_ref, &array);
|
||||
glReadPixels(x, y, width, height, format, type, pixels);
|
||||
release_nio_buffer(env, array_ref, array);
|
||||
}
|
||||
|
||||
@@ -751,14 +751,6 @@ JNIEXPORT void JNICALL Java_com_google_android_gles_1jni_GLImpl_glPopMatrix
|
||||
JNIEXPORT void JNICALL Java_com_google_android_gles_1jni_GLImpl_glPushMatrix
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: com_google_android_gles_jni_GLImpl
|
||||
* Method: glReadPixels
|
||||
* Signature: (IIIIIILjava/nio/Buffer;)V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_google_android_gles_1jni_GLImpl_glReadPixels
|
||||
(JNIEnv *, jobject, jint, jint, jint, jint, jint, jint, jobject);
|
||||
|
||||
/*
|
||||
* Class: com_google_android_gles_jni_GLImpl
|
||||
* Method: glRotatef
|
||||
|
||||
Reference in New Issue
Block a user