EGL#eglInitialize(long, IntBuffer, IntBuffer) and EGL#eglTerminate(long),
where eglInitialize(..) is issued only for the 1st call per eglDisplay
and eglTerminate(..) is issued only for the last call.
This class is required, due to implementation bugs within EGL where EGL#eglTerminate(long)
does not mark the resource for deletion when still in use, bug releases them immediately.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final IntBuffer | |
| private static final IntBuffer | |
| private static final boolean | |
| private static final EGLGraphicsDevice. | |
| private static final LongObjectHashMap | |
| private static EGLDisplayUtil. | |
| private static boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static EGLGraphicsDevice | Returns: an uninitializedEGLGraphicsDeviceReturns an uninitialized |
| public static EGLGraphicsDevice | Returns: an uninitializedEGLGraphicsDeviceReturns an uninitialized |
| public static EGLGraphicsDevice | Returns: an uninitialized EGLGraphicsDeviceReturns an uninitialized |
| private static synchronized long | |
| private static synchronized int | Returns: EGL#EGL_SUCCESS if successful, otherwise EGL#EGL_BAD_DISPLAY if eglGetDisplay(long) failed
or EGL#EGL_NOT_INITIALIZED if eglInitialize(long, IntBuffer, IntBuffer) failed.array of size 1 holding return value if successful, otherwise eglDisplay, final int[] EGL#EGL_NO_DISPLAY.array of size 1 holding the EGL error value as retrieved by eglErr, final int[] major, final int[] minor)EGL#eglGetError() if not successful.
|
| private static synchronized long | Returns: the initialized EGL display IDin/out array of size 1, passing the requested nativeVisualID, may return a different revised nativeVisualID handle nativeDisplayID, final int[] major, final int[] minor)Attempts to |
| private static synchronized boolean | Returns: true if the eglDisplay is valid and it's reference counter becomes one andEGL#eglInitialize(long, IntBuffer, IntBuffer) was successful, otherwise false
|
| private static synchronized boolean | Returns: true if the eglDisplay is valid and it's reference counter becomes zero andEGL#eglTerminate(long) was successful, otherwise falsethe EGL display handle eglDisplay)
|
| pack-priv static synchronized void | |
| public static int |
| _eglMajorVersion | back to summary |
|---|---|
| private static final IntBuffer _eglMajorVersion | |
| _eglMinorVersion | back to summary |
|---|---|
| private static final IntBuffer _eglMinorVersion | |
| DEBUG | back to summary |
|---|---|
| private static final boolean DEBUG | |
| eglLifecycleCallback | back to summary |
|---|---|
| private static final EGLGraphicsDevice. | |
| openEGLDisplays | back to summary |
|---|---|
| private static final LongObjectHashMap openEGLDisplays | |
| singletonEGLDisplay | back to summary |
|---|---|
| private static EGLDisplayUtil. | |
| useSingletonEGLDisplay | back to summary |
|---|---|
| private static boolean useSingletonEGLDisplay | |
| EGLDisplayUtil | back to summary |
|---|---|
| public EGLDisplayUtil() | |
| dumpOpenDisplayConnections | back to summary |
|---|---|
| public static void dumpOpenDisplayConnections() | |
| eglCreateEGLGraphicsDevice | back to summary |
|---|---|
| public static EGLGraphicsDevice eglCreateEGLGraphicsDevice(final long nativeDisplayID, final String connection, final int unitID) Returns an uninitialized
Using
Using the default
| |
| eglCreateEGLGraphicsDevice | back to summary |
|---|---|
| public static EGLGraphicsDevice eglCreateEGLGraphicsDevice(final AbstractGraphicsDevice aDevice) Returns an uninitialized
Using
Using the default
| |
| eglCreateEGLGraphicsDevice | back to summary |
|---|---|
| public static EGLGraphicsDevice eglCreateEGLGraphicsDevice(final NativeSurface surface) Returns an uninitialized
Using
Using the default
| |
| eglGetDisplay | back to summary |
|---|---|
| private static synchronized long eglGetDisplay(final long nativeDisplay_id) | |
| eglGetDisplayAndInitialize | back to summary |
|---|---|
private static synchronized int eglGetDisplayAndInitialize(final long nativeDisplayID, final long[] eglDisplay, final int[] eglErr, final int[] major, final int[] minor)
| |
| eglGetDisplayAndInitialize | back to summary |
|---|---|
| private static synchronized long eglGetDisplayAndInitialize(final long[] nativeDisplayID, final int[] major, final int[] minor) Attempts to
| |
| eglInitialize | back to summary |
|---|---|
private static synchronized boolean eglInitialize(final long eglDisplay, final int[] major, final int[] minor)
| |
| eglTerminate | back to summary |
|---|---|
private static synchronized boolean eglTerminate(final long eglDisplay)
| |
| setSingletonEGLDisplayOnly | back to summary |
|---|---|
| pack-priv static synchronized void setSingletonEGLDisplayOnly(final boolean v) | |
| shutdown | back to summary |
|---|---|
public static int shutdown(final boolean verbose)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Throwable | |
| pack-priv final long | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static EGLDisplayUtil. | |
| pack-priv static EGLDisplayUtil. | getOrCreateOpened(final long eglDisplay, final IntBuffer major, final IntBuffer minor)
Returns an already opened |
| public String |
| createdStack | back to summary |
|---|---|
| pack-priv final Throwable createdStack | |
| eglDisplay | back to summary |
|---|---|
| pack-priv final long eglDisplay | |
| initRefCount | back to summary |
|---|---|
| pack-priv int initRefCount | |
| EGLDisplayRef | back to summary |
|---|---|
| private EGLDisplayRef(final long eglDisplay) | |
| closeOpened | back to summary |
|---|---|
| pack-priv static EGLDisplayUtil. Closes an already opened
Method decreases a reference counter and closes the
An | |
| getOrCreateOpened | back to summary |
|---|---|
| pack-priv static EGLDisplayUtil. Returns an already opened
Opened
Method utilizes
An | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |