eglGetDisplay.cpp revision ab6fc2a86f34be455c144a2d691e94909998c959
1/* EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) */ 2static jobject 3android_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 ) */ 13static jobject 14android_eglGetDisplayInt 15 (JNIEnv *_env, jobject _this, jint display_id) { 16 17 if (sizeof(void*) != sizeof(uint32_t)) { 18 jniThrowException(_env, "java/lang/UnsupportedOperationException", "eglGetDisplay"); 19 return 0; 20 } 21 return android_eglGetDisplay(_env, _this, display_id); 22} 23 24