com.jogamp.nativewindow.x11
Class X11GraphicsDevice
java.lang.Object
javax.media.nativewindow.DefaultGraphicsDevice
com.jogamp.nativewindow.x11.X11GraphicsDevice
- All Implemented Interfaces:
- Cloneable, AbstractGraphicsDevice
public class X11GraphicsDevice
- extends DefaultGraphicsDevice
- implements Cloneable
Encapsulates a graphics device on X11 platforms.
|
Field Summary |
static boolean |
DEBUG
|
DEBUG
public static final boolean DEBUG
X11GraphicsDevice
public X11GraphicsDevice(String connection,
int unitID)
- Constructs a new X11GraphicsDevice corresponding to the given connection and default
ToolkitLock via NativeWindowFactory.getDefaultToolkitLock(String).
Note that this is not an open connection, ie no native display handle exist.
This constructor exist to setup a default device connection.
- See Also:
DefaultGraphicsDevice.DefaultGraphicsDevice(String, String, int)
X11GraphicsDevice
public X11GraphicsDevice(long display,
int unitID,
boolean owner)
- Constructs a new X11GraphicsDevice corresponding to the given native display handle and default
ToolkitLock via NativeWindowFactory.createDefaultToolkitLock(String, long).
- See Also:
DefaultGraphicsDevice.DefaultGraphicsDevice(String, String, int, long)
X11GraphicsDevice
public X11GraphicsDevice(long display,
int unitID,
ToolkitLock locker,
boolean owner)
- Parameters:
display - the Display connectionlocker - custom ToolkitLock, eg to force null locking in NEWT- See Also:
DefaultGraphicsDevice.DefaultGraphicsDevice(String, String, int, long, ToolkitLock)
clone
public Object clone()
- Overrides:
clone in class DefaultGraphicsDevice
close
public boolean close()
- Description copied from interface:
AbstractGraphicsDevice
- Optionally closing the device.
The default implementation is a NOP, just setting the handle to null.
The specific implementing, ie X11GraphicsDevice,
shall have a enable/disable like com.jogamp.nativewindow.x11.X11GraphicsDevice#setCloseDisplay(boolean, boolean),
which shall be invoked at creation time to determine ownership/role of freeing the resource.
- Specified by:
close in interface AbstractGraphicsDevice- Overrides:
close in class DefaultGraphicsDevice
- Returns:
- true if the handle was not
null, otherwise false.
Copyright 2010 JogAmp Community.