41package com.jogamp.nativewindow;
43import jogamp.nativewindow.Debug;
49 public static final boolean DEBUG = Debug.debug(
"GraphicsDevice");
A interface describing a graphics device in a toolkit-independent manner.
boolean close()
Optionally closing the device if handle is not null.
void lock()
Optionally locking the device, utilizing eg com.jogamp.nativewindow.ToolkitLock#lock().
void unlock()
Optionally unlocking the device, utilizing eg com.jogamp.nativewindow.ToolkitLock#unlock().
String getType()
Returns the type of the underlying subsystem, ie NativeWindowFactory.TYPE_KD, NativeWindowFactory....
String getUniqueID()
Returns a unique ID object of this device using type, connection and unitID as it's key components.
long getHandle()
Returns the native handle of the underlying native device, if such thing exist.
boolean open()
Optionally [re]opening the device if handle is null.
static final boolean DEBUG
int getUnitID()
Returns the graphics device unit ID.
static int DEFAULT_UNIT
Default unit id for the 1st device: 0.
static String EXTERNAL_CONNECTION
Dummy connection value for an external connection where no native support for multiple devices is ava...
String getConnection()
Returns the semantic GraphicsDevice connection.
static String DEFAULT_CONNECTION
Dummy connection value for a default connection where no native support for multiple devices is avail...