net.java.games.jogl.impl.x11

Class X11OffscreenGLContext


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

X11OffscreenGLContext(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
destroyImpl()
protected void
free()
int
getOffscreenContextHeight()
int
getOffscreenContextPixelDataType()
int
getOffscreenContextReadBuffer()
int
getOffscreenContextWidth()
protected boolean
isOffscreen()
protected boolean
makeCurrent(Runnable initAction)
boolean
offscreenImageNeedsVerticalFlip()
void
releasePbufferFromTexture()
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

X11OffscreenGLContext

public X11OffscreenGLContext(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

destroyImpl

protected void destroyImpl()
Overrides:
destroyImpl in interface X11GLContext

free

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

getOffscreenContextHeight

public int getOffscreenContextHeight()
Overrides:
getOffscreenContextHeight in interface X11GLContext

getOffscreenContextPixelDataType

public int getOffscreenContextPixelDataType()
Overrides:
getOffscreenContextPixelDataType in interface X11GLContext

getOffscreenContextReadBuffer

public int getOffscreenContextReadBuffer()
Overrides:
getOffscreenContextReadBuffer in interface X11GLContext

getOffscreenContextWidth

public int getOffscreenContextWidth()
Overrides:
getOffscreenContextWidth 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

swapBuffers

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