net.java.games.jogl.impl.x11

Class X11OnscreenGLContext


public class X11OnscreenGLContext
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

X11OnscreenGLContext(Component component, GLCapabilities capabilities, GLCapabilitiesChooser chooser, GLContext shareWith)

Method Summary

void
bindPbufferToTexture()
boolean
canCreatePbufferContext()
protected void
create()
protected GL
createGL()
GLContext
createPbufferContext(GLCapabilities capabilities, int initialWidth, int initialHeight)
protected void
free()
int
getOffscreenContextReadBuffer()
protected boolean
isOffscreen()
protected boolean
makeCurrent(Runnable initAction)
boolean
offscreenImageNeedsVerticalFlip()
void
releasePbufferFromTexture()
void
setSwapInterval(int interval)
void
swapBuffers()

Methods inherited from class net.java.games.jogl.impl.x11.X11GLContext

chooseVisual, chooseVisualAndCreateContext, create, createContext, createGL, destroyImpl, dynamicLookupFunction, free, getContext, getGLProcAddressTable, getJAWT, getOffscreenContextHeight, getOffscreenContextPixelDataType, getOffscreenContextReadBuffer, getOffscreenContextWidth, getPlatformExtensionsString, isCreated, isExtensionAvailable, isFunctionAvailable, isOffscreen, lockAWT, makeCurrent, mapToRealGLExtensionName, mapToRealGLFunctionName, offscreenImageNeedsVerticalFlip, resetGLFunctionAvailability, setRenderingThread, swapBuffers, unlockAWT

Methods inherited from class net.java.games.jogl.impl.GLContext

bindPbufferToTexture, canCreatePbufferContext, createGL, createPbufferContext, destroy, destroyImpl, dynamicLookupFunction, free, getAutoSwapBufferMode, getFloatingPointMode, getGL, getGLU, getNoAutoRedrawMode, getOffscreenContextHeight, getOffscreenContextPixelDataType, getOffscreenContextReadBuffer, getOffscreenContextWidth, getPerThreadContextStack, getPerThreadSavedCurrentContext, getPerThreadSavedInitAction, getPlatformExtensionsString, getRealized, getRenderingThread, getThreadName, invokeGL, isCreated, isExtensionAvailable, isFunctionAvailable, isOffscreen, isRealized, makeCurrent, mapToRealGLExtensionName, mapToRealGLFunctionName, offscreenImageNeedsVerticalFlip, releasePbufferFromTexture, resetGLFunctionAvailability, resetProcAddressTable, resizeOffscreenContext, setAutoSwapBufferMode, setGL, setGLU, setNoAutoRedrawMode, setPerThreadSavedCurrentContext, setRealized, setRealized, setRenderingThread, setSwapInterval, swapBuffers, willSetRenderingThread

Constructor Details

X11OnscreenGLContext

public X11OnscreenGLContext(Component component,
                            GLCapabilities capabilities,
                            GLCapabilitiesChooser chooser,
                            GLContext shareWith)

Method Details

bindPbufferToTexture

public void bindPbufferToTexture()
Overrides:
bindPbufferToTexture in interface GLContext

canCreatePbufferContext

public boolean canCreatePbufferContext()
Overrides:
canCreatePbufferContext in interface GLContext

create

protected void create()
Overrides:
create in interface X11GLContext

createGL

protected GL createGL()
Overrides:
createGL in interface X11GLContext

createPbufferContext

public GLContext createPbufferContext(GLCapabilities capabilities,
                                      int initialWidth,
                                      int initialHeight)
Overrides:
createPbufferContext in interface GLContext

free

protected void free()
            throws GLException
Overrides:
free in interface X11GLContext

getOffscreenContextReadBuffer

public int getOffscreenContextReadBuffer()
Overrides:
getOffscreenContextReadBuffer in interface X11GLContext

isOffscreen

protected boolean isOffscreen()
Overrides:
isOffscreen in interface X11GLContext

makeCurrent

protected boolean makeCurrent(Runnable initAction)
            throws GLException
Overrides:
makeCurrent in interface X11GLContext

offscreenImageNeedsVerticalFlip

public boolean offscreenImageNeedsVerticalFlip()
Overrides:
offscreenImageNeedsVerticalFlip in interface X11GLContext

releasePbufferFromTexture

public void releasePbufferFromTexture()
Overrides:
releasePbufferFromTexture in interface GLContext

setSwapInterval

public void setSwapInterval(int interval)
Overrides:
setSwapInterval in interface GLContext

swapBuffers

public void swapBuffers()
            throws GLException
Overrides:
swapBuffers in interface X11GLContext