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: add native implementations for more GL and EGL java wrappers
This commit is contained in:
@@ -252,3 +252,8 @@ JNIEXPORT void JNICALL Java_android_opengl_GLES20_glGetFloatv__I_3FI(JNIEnv *env
|
||||
|
||||
(*env)->ReleasePrimitiveArrayCritical(env, params_ref, params_base, 0);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_opengl_GLES20_glFlush(JNIEnv *env, jclass this)
|
||||
{
|
||||
glFlush();
|
||||
}
|
||||
|
||||
@@ -125,3 +125,11 @@ JNIEXPORT jboolean JNICALL Java_com_google_android_gles_1jni_EGLImpl_native_1egl
|
||||
{
|
||||
return eglDestroyContext(_PTR(display), _PTR(context));
|
||||
}
|
||||
|
||||
JNIEXPORT jlong JNICALL Java_com_google_android_gles_1jni_EGLImpl_native_1eglCreatePbufferSurface(JNIEnv *env, jobject this, jlong display, jlong config, jintArray _attrib_list)
|
||||
{
|
||||
EGLint *attrib_list = get_int_array_crit(env, _attrib_list);
|
||||
EGLSurface ret = eglCreatePbufferSurface(_PTR(display), _PTR(config), attrib_list);
|
||||
release_int_array_crit(env, _attrib_list, attrib_list);
|
||||
return _INTPTR(ret);
|
||||
}
|
||||
|
||||
@@ -87,6 +87,14 @@ JNIEXPORT jboolean JNICALL Java_com_google_android_gles_1jni_EGLImpl_native_1egl
|
||||
JNIEXPORT jboolean JNICALL Java_com_google_android_gles_1jni_EGLImpl_native_1eglDestroyContext
|
||||
(JNIEnv *, jobject, jlong, jlong);
|
||||
|
||||
/*
|
||||
* Class: com_google_android_gles_jni_EGLImpl
|
||||
* Method: native_eglCreatePbufferSurface
|
||||
* Signature: (JJ[I)J
|
||||
*/
|
||||
JNIEXPORT jlong JNICALL Java_com_google_android_gles_1jni_EGLImpl_native_1eglCreatePbufferSurface
|
||||
(JNIEnv *, jobject, jlong, jlong, jintArray);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -263,14 +263,6 @@ JNIEXPORT void JNICALL Java_com_google_android_gles_1jni_GLImpl_glEnableClientSt
|
||||
JNIEXPORT void JNICALL Java_com_google_android_gles_1jni_GLImpl_glFinish
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: com_google_android_gles_jni_GLImpl
|
||||
* Method: glFlush
|
||||
* Signature: ()V
|
||||
*/
|
||||
JNIEXPORT void JNICALL Java_com_google_android_gles_1jni_GLImpl_glFlush
|
||||
(JNIEnv *, jobject);
|
||||
|
||||
/*
|
||||
* Class: com_google_android_gles_jni_GLImpl
|
||||
* Method: glFogf
|
||||
|
||||
Reference in New Issue
Block a user