|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.nativewindow.DefaultGraphicsDevice
com.jogamp.nativewindow.egl.EGLGraphicsDevice
public class EGLGraphicsDevice
Encapsulates a graphics device on EGL platforms.
| Nested Class Summary | |
|---|---|
static interface |
EGLGraphicsDevice.EGLDisplayLifecycleCallback
Hack to allow inject a EGL termination call. |
| Field Summary |
|---|
| Fields inherited from interface javax.media.nativewindow.AbstractGraphicsDevice |
|---|
DEBUG, DEFAULT_CONNECTION, DEFAULT_UNIT, EXTERNAL_CONNECTION |
| Constructor Summary | |
|---|---|
EGLGraphicsDevice()
Note that this is not an open connection, ie no native display handle exist. |
|
EGLGraphicsDevice(long nativeDisplayID,
long eglDisplay,
String connection,
int unitID,
EGLGraphicsDevice.EGLDisplayLifecycleCallback eglLifecycleCallback)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class javax.media.nativewindow.DefaultGraphicsDevice |
|---|
getConnection, getHandle, getToolkitLock, getType, getUniqueID, getUnitID, lock, unlock, validateLocked |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EGLGraphicsDevice()
public EGLGraphicsDevice(long nativeDisplayID,
long eglDisplay,
String connection,
int unitID,
EGLGraphicsDevice.EGLDisplayLifecycleCallback eglLifecycleCallback)
| Method Detail |
|---|
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 dispose it's ToolkitLock and sets 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 DefaultGraphicsDevice
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||