|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.impl.GLDrawableImpl
com.jogamp.opengl.impl.x11.glx.X11GLXDrawable
com.jogamp.opengl.impl.x11.glx.X11OnscreenGLXDrawable
public class X11OnscreenGLXDrawable
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 |
---|
component, DEBUG, factory, realized, requestedCapabilities |
Constructor Summary | |
---|---|
protected |
X11OnscreenGLXDrawable(GLDrawableFactory factory,
NativeWindow 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 NativeWindow.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. |
int |
getHeight()
Returns the current height of this GLDrawable. |
int |
getWidth()
Returns the current width of this GLDrawable. |
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, getChosenGLCapabilities, getFactory, getFactoryImpl, getGLProfile, getNativeWindow, getRequestedGLCapabilities, 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 |
---|
public static final boolean USE_GLXWINDOW
Constructor Detail |
---|
protected X11OnscreenGLXDrawable(GLDrawableFactory factory, NativeWindow component)
Method Detail |
---|
public long getHandle()
GLDrawable
NativeWindow.getSurfaceHandle()
,
ie the native surface handle of the underlying windowing toolkit.
getHandle
in interface GLDrawable
getHandle
in class GLDrawableImpl
protected void destroyHandle()
destroyHandle
in class GLDrawableImpl
protected void updateHandle()
updateHandle
in class GLDrawableImpl
public GLContext createContext(GLContext shareWith)
GLDrawable
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.
public int getWidth()
GLDrawable
getWidth
in interface GLDrawable
getWidth
in class GLDrawableImpl
public int getHeight()
GLDrawableImpl
getHeight
in interface GLDrawable
getHeight
in class GLDrawableImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |