Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
net.java.games.jogl.impl.GLContext
net.java.games.jogl.impl.x11.X11GLContext
net.java.games.jogl.impl.x11.X11PbufferGLContext
public class X11PbufferGLContext
extends X11GLContext
Field Summary |
Fields inherited from class net.java.games.jogl.impl.x11.X11GLContext | |
context , display , drawable , isLinuxAMD64 , mostRecentDisplay , visualID |
Fields inherited from class net.java.games.jogl.impl.GLContext | |
DEBUG , NO_FREE , VERBOSE , autoSwapBuffers , capabilities , chooser , component , deferredDestroy , deferredReshapeAction , deferredSetRealized , functionAvailability , gl , glu , gluProcAddressTable , haveResetGLUProcAddressTable , noAutoRedraw , pendingOffscreenHeight , pendingOffscreenResize , pendingOffscreenWidth , perThreadContextStack , perThreadRenderingContext , perThreadSavedCurrentContext , realized , renderingThread , willSetRenderingThread |
Constructor Summary | |
|
Method Summary | |
void |
|
boolean |
|
protected void |
|
void |
|
GLContext |
|
protected void |
|
protected void |
|
int |
|
int |
|
void |
|
protected boolean |
|
protected boolean |
|
boolean |
|
void |
|
void |
|
public X11PbufferGLContext(GLCapabilities capabilities, int initialWidth, int initialHeight)
public void bindPbufferToTexture()
Pbuffer support; given that this is a GLContext associated with a pbuffer, binds this pbuffer to its texture target.
- Overrides:
- bindPbufferToTexture in interface GLContext
public boolean canCreatePbufferContext()
Pbuffer support; indicates whether this context is capable of creating a subordinate pbuffer context (distinct from an "offscreen context", which is typically software-rendered on all platforms).
- Overrides:
- canCreatePbufferContext in interface GLContext
protected void create()
Creates and initializes an appropriate OpenGl context. Should only be called bymakeCurrent(Runnable)
.
- Overrides:
- create in interface X11GLContext
public GLContext createPbufferContext(GLCapabilities capabilities, int initialWidth, int initialHeight)
Pbuffer support; creates a subordinate GLContext for a pbuffer associated with this context.
- Overrides:
- createPbufferContext in interface GLContext
protected void destroyImpl() throws GLException
Destroys the underlying OpenGL context.
- Overrides:
- destroyImpl in interface X11GLContext
protected void free() throws GLException
Frees the OpenGL context. All error conditions cause a GLException to be thrown.
- Overrides:
- free in interface X11GLContext
public int getFloatingPointMode()
Indicates which floating-point pbuffer implementation is in use. Returns one of GLPbuffer.APPLE_FLOAT, GLPbuffer.ATI_FLOAT, or GLPbuffer.NV_FLOAT.
- Overrides:
- getFloatingPointMode in interface GLContext
public int getOffscreenContextReadBuffer()
Only called for offscreen contexts; returns the buffer from which to read pixels (GL.GL_FRONT or GL.GL_BACK).
- Overrides:
- getOffscreenContextReadBuffer in interface X11GLContext
public void handleModeSwitch(long parentHdc, long parentHglrc)
protected boolean isOffscreen()
Hook indicating whether the concrete GLContext implementation is offscreen and therefore whether we need to process resize requests.
- Overrides:
- isOffscreen in interface X11GLContext
protected boolean makeCurrent(Runnable initAction) throws GLException
Attempts to make the GL context current. If necessary, creates a context and calls the initAction once the context is current. Most error conditions cause an exception to be thrown, except for the case where the context can not be created because the component has not yet been visualized. In this case makeCurrent returns false and the caller should abort any OpenGL event processing and instead return immediately.
- Overrides:
- makeCurrent in interface X11GLContext
public boolean offscreenImageNeedsVerticalFlip()
On some platforms the mismatch between OpenGL's coordinate system (origin at bottom left) and the window system's coordinate system (origin at top left) necessitates a vertical flip of pixels read from offscreen contexts.
- Overrides:
- offscreenImageNeedsVerticalFlip in interface X11GLContext
public void releasePbufferFromTexture()
Pbuffer support; given that this is a GLContext associated with a pbuffer, releases this pbuffer from its texture target.
- Overrides:
- releasePbufferFromTexture in interface GLContext
public void swapBuffers() throws GLException
Swaps the buffers of the OpenGL context if necessary. All error conditions cause a GLException to be thrown.
- Overrides:
- swapBuffers in interface X11GLContext