Interface EGLGraphicsDevice.EGLDisplayLifecycleCallback

Enclosing class:
EGLGraphicsDevice

public static interface EGLGraphicsDevice.EGLDisplayLifecycleCallback
Hack to allow inject a EGL termination call.

FIXME: This shall be removed when relocated EGL to the nativewindow package, since then it can be utilized directly.

  • Method Summary

    Modifier and Type
    Method
    Description
    long
    eglGetAndInitDisplay(long[] nativeDisplayID, int[] major, int[] minor)
    Implementation should issue an EGL.eglGetDisplay(nativeDisplayID) inclusive EGL.eglInitialize(eglDisplayHandle, ..) call.
    void
    eglTerminate(long eglDisplayHandle)
    Implementation should issue an EGL.eglTerminate(eglDisplayHandle) call.
  • Method Details

    • eglGetAndInitDisplay

      long eglGetAndInitDisplay(long[] nativeDisplayID, int[] major, int[] minor)
      Implementation should issue an EGL.eglGetDisplay(nativeDisplayID) inclusive EGL.eglInitialize(eglDisplayHandle, ..) call.
      Parameters:
      nativeDisplayID - in/out array of size 1, passing the requested nativeVisualID, may return a different revised nativeVisualID handle
      major - out array for EGL major version
      minor - out array for EGL minor version
      Returns:
      the initialized EGL display ID, or 0 if not successful
    • eglTerminate

      void eglTerminate(long eglDisplayHandle)
      Implementation should issue an EGL.eglTerminate(eglDisplayHandle) call.
      Parameters:
      eglDisplayHandle -