1 /* EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) */
2 static jobject
android_eglGetDisplay(JNIEnv * _env,jobject _this,jlong display_id)3 android_eglGetDisplay
4 (JNIEnv *_env, jobject _this, jlong display_id) {
5 EGLDisplay _returnValue = (EGLDisplay) 0;
6 _returnValue = eglGetDisplay(
7 reinterpret_cast<EGLNativeDisplayType>(display_id)
8 );
9 return toEGLHandle(_env, egldisplayClass, egldisplayConstructor, _returnValue);
10 }
11
12 /* EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) */
13 static jobject
android_eglGetDisplayInt(JNIEnv * _env,jobject _this,jint display_id)14 android_eglGetDisplayInt
15 (JNIEnv *_env, jobject _this, jint display_id) {
16
17 if (static_cast<uintptr_t>(display_id) !=
18 reinterpret_cast<uintptr_t>(EGL_DEFAULT_DISPLAY)) {
19 jniThrowException(_env, "java/lang/UnsupportedOperationException", "eglGetDisplay");
20 return 0;
21 }
22 return android_eglGetDisplay(_env, _this, display_id);
23 }
24
25