Home | History | Annotate | Download | only in egl
      1 /* EGLDisplay eglGetDisplay ( EGLNativeDisplayType display_id ) */
      2 static jobject
      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
     14 android_eglGetDisplayInt
     15   (JNIEnv *_env, jobject _this, jint display_id) {
     16 
     17     if ((EGLNativeDisplayType)display_id != EGL_DEFAULT_DISPLAY) {
     18         jniThrowException(_env, "java/lang/UnsupportedOperationException", "eglGetDisplay");
     19         return 0;
     20     }
     21     return android_eglGetDisplay(_env, _this, display_id);
     22 }
     23 
     24