com.jogamp.opengl.impl.x11.glx
Class X11OnscreenGLXDrawable

java.lang.Object
  extended by com.jogamp.opengl.impl.GLDrawableImpl
      extended by com.jogamp.opengl.impl.x11.glx.X11GLXDrawable
          extended by com.jogamp.opengl.impl.x11.glx.X11OnscreenGLXDrawable
All Implemented Interfaces:
GLDrawable
Direct Known Subclasses:
X11DummyGLXDrawable

public class X11OnscreenGLXDrawable
extends X11GLXDrawable


Field Summary
static boolean USE_GLXWINDOW
          GLXWindow can't be made current on AWT with NVidia driver, hence disabled for now
 
Fields inherited from class com.jogamp.opengl.impl.GLDrawableImpl
DEBUG, factory, realized, requestedCapabilities, surface
 
Constructor Summary
protected X11OnscreenGLXDrawable(GLDrawableFactory factory, NativeSurface component)
           
 
Method Summary
 GLContext createContext(GLContext shareWith)
          Creates a new context for drawing to this drawable that will optionally share display lists and other server-side OpenGL objects with the specified GLContext.
protected  void destroyHandle()
           
 long getHandle()
          This is the GL/Windowing drawable handle.
It is usually the NativeSurface.getSurfaceHandle(), ie the native surface handle of the underlying windowing toolkit.
However, on X11/GLX this reflects a GLXDrawable, which represents a GLXWindow, GLXPixmap, or GLXPbuffer.
On EGL, this represents the EGLSurface.
protected  void updateHandle()
          must be locked already
 
Methods inherited from class com.jogamp.opengl.impl.x11.glx.X11GLXDrawable
getGLDynamicLookupHelper, setRealizedImpl, swapBuffersImpl
 
Methods inherited from class com.jogamp.opengl.impl.GLDrawableImpl
destroy, destroyImpl, getChosenGLCapabilities, getFactory, getFactoryImpl, getGLProfile, getHeight, getNativeSurface, getRequestedGLCapabilities, getWidth, isRealized, isSurfaceLocked, lockSurface, setRealized, swapBuffers, toHexString, toString, unlockSurface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

USE_GLXWINDOW

public static final boolean USE_GLXWINDOW
GLXWindow can't be made current on AWT with NVidia driver, hence disabled for now

See Also:
Constant Field Values
Constructor Detail

X11OnscreenGLXDrawable

protected X11OnscreenGLXDrawable(GLDrawableFactory factory,
                                 NativeSurface component)
Method Detail

getHandle

public long getHandle()
Description copied from interface: GLDrawable
This is the GL/Windowing drawable handle.
It is usually the NativeSurface.getSurfaceHandle(), ie the native surface handle of the underlying windowing toolkit.
However, on X11/GLX this reflects a GLXDrawable, which represents a GLXWindow, GLXPixmap, or GLXPbuffer.
On EGL, this represents the EGLSurface.

Specified by:
getHandle in interface GLDrawable
Overrides:
getHandle in class GLDrawableImpl

destroyHandle

protected void destroyHandle()
Overrides:
destroyHandle in class GLDrawableImpl

updateHandle

protected void updateHandle()
must be locked already

Overrides:
updateHandle in class GLDrawableImpl

createContext

public GLContext createContext(GLContext shareWith)
Description copied from interface: GLDrawable
Creates a new context for drawing to this drawable that will optionally share display lists and other server-side OpenGL objects with the specified GLContext.

The GLContext share need not be associated with this GLDrawable and may be null if sharing of display lists and other objects is not desired. See the note in the overview documentation on context sharing.



Copyright 2010 JogAmp Community.