Top Fields Constructors Methods
jogamp.opengl.x11.glx

public Class X11OnscreenGLXDrawable

extends X11GLXDrawable
Class Inheritance
Imports
com.jogamp.nativewindow.NativeSurface, com.jogamp.opengl.GLContext, .GLDrawableFactory, .GLException

Field Summary

Modifier and TypeField and Description
pack-priv long
public static final boolean
USE_GLXWINDOW

GLXWindow can't be made current on AWT with NVidia driver, hence disabled for now

pack-priv boolean

Constructor Summary

AccessConstructor and Description
protected
X11OnscreenGLXDrawable(final GLDrawableFactory factory, final NativeSurface component, final boolean realized)

Method Summary

Modifier and TypeMethod and Description
public GLContext
createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.
protected final void
createHandle()

Overrides jogamp.opengl.GLDrawableImpl.createHandle.

called with locked surface @ setRealized(true) or @ lockSurface(..) when surface changed

Must be paired w/ destroyHandle().

protected void
destroyHandle()

Overrides jogamp.opengl.GLDrawableImpl.destroyHandle.

called with locked surface @ setRealized(false) or @ lockSurface(..) when surface changed

Must be paired w/ createHandle().

public long
getHandle()

Overrides jogamp.opengl.GLDrawableImpl.getHandle.

Implements com.jogamp.opengl.GLDrawable.getHandle.

Returns the GL drawable handle, guaranteed to be valid after realization and while it's surface is being locked.
Inherited from jogamp.opengl.x11.glx.X11GLXDrawable:
setRealizedImplswapBuffersImpl

Field Detail

glXWindowback to summary
pack-priv long glXWindow
USE_GLXWINDOWback to summary
public static final boolean USE_GLXWINDOW

GLXWindow can't be made current on AWT with NVidia driver, hence disabled for now

useGLXWindowback to summary
pack-priv boolean useGLXWindow

Constructor Detail

X11OnscreenGLXDrawableback to summary
protected X11OnscreenGLXDrawable(final GLDrawableFactory factory, final NativeSurface component, final boolean realized)

Method Detail

createContextback to summary
public GLContext createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Doc from com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures 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 context sharing as well as GLSharedContextSetter.

Annotations
@Override
createHandleback to summary
protected final void createHandle()

Overrides jogamp.opengl.GLDrawableImpl.createHandle.

Doc from jogamp.opengl.GLDrawableImpl.createHandle.

called with locked surface @ setRealized(true) or @ lockSurface(..) when surface changed

Must be paired w/ destroyHandle().

Annotations
@Override
destroyHandleback to summary
protected void destroyHandle()

Overrides jogamp.opengl.GLDrawableImpl.destroyHandle.

Doc from jogamp.opengl.GLDrawableImpl.destroyHandle.

called with locked surface @ setRealized(false) or @ lockSurface(..) when surface changed

Must be paired w/ createHandle().

Annotations
@Override
getHandleback to summary
public long getHandle()

Overrides jogamp.opengl.GLDrawableImpl.getHandle.

Implements com.jogamp.opengl.GLDrawable.getHandle.

Doc from com.jogamp.opengl.GLDrawable.getHandle.

Returns the GL drawable handle, guaranteed to be valid after realization and while it's surface is being locked.

It is usually identical to the underlying windowing toolkit surface's handle or an intermediate layer to suite GL, e.g. an EGL surface.

On EGL it is represented by the EGLSurface.
On X11/GLX it is represented by either the Window XID, GLXPixmap, or GLXPbuffer.
On Windows it is represented by the HDC, which may change with each NativeSurface#lockSurface().

Annotations
@Override