public class EGLGraphicsDevice extends DefaultGraphicsDevice implements Cloneable
| Modifier and Type | Class and Description |
|---|---|
static interface |
EGLGraphicsDevice.EGLDisplayLifecycleCallback
Hack to allow inject a EGL termination call.
|
DEBUG, DEFAULT_CONNECTION, DEFAULT_UNIT, EXTERNAL_CONNECTION| Constructor and Description |
|---|
EGLGraphicsDevice(long nativeDisplayID,
long eglDisplay,
String connection,
int unitID,
EGLGraphicsDevice.EGLDisplayLifecycleCallback eglLifecycleCallback) |
EGLGraphicsDevice(String connection,
int unitID)
Note that this is not an open connection, ie no native display handle exist.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
close()
Optionally closing the device if handle is not
null. |
long |
getNativeDisplayID() |
boolean |
open()
Optionally [re]opening the device if handle is
null. |
String |
toString() |
getConnection, getHandle, getToolkitLock, getType, getUniqueID, getUnitID, lock, unlockpublic EGLGraphicsDevice(String connection, int unitID)
public EGLGraphicsDevice(long nativeDisplayID,
long eglDisplay,
String connection,
int unitID,
EGLGraphicsDevice.EGLDisplayLifecycleCallback eglLifecycleCallback)
public long getNativeDisplayID()
public Object clone()
clone in class DefaultGraphicsDevicepublic boolean open()
AbstractGraphicsDevicenull.
The default implementation is a NOP.
Example implementations like X11GraphicsDevice
or EGLGraphicsDevice
issue the native open operation in case handle is null.
open in interface AbstractGraphicsDeviceopen in class DefaultGraphicsDevicenull and opening was successful, otherwise false.public boolean close()
AbstractGraphicsDevicenull.
The default implementation is a NOP, just setting the handle to null.
Example implementations like X11GraphicsDevice
or EGLGraphicsDevice
issue the native close operation or skip it depending on the handles's ownership.
close in interface AbstractGraphicsDeviceclose in class DefaultGraphicsDevicenull and closing was successful, otherwise false.public String toString()
toString in class DefaultGraphicsDeviceCopyright 2010 JogAmp Community.