public class X11OffscreenGLContext extends X11GLContext
context, mostRecentDisplay
DEBUG, functionAvailability, gl, lock, NO_FREE, optimizationEnabled, VERBOSE
CONTEXT_CURRENT, CONTEXT_CURRENT_NEW, CONTEXT_NOT_CURRENT
Constructor and Description |
---|
X11OffscreenGLContext(X11OffscreenGLDrawable drawable,
GLContext shareWith) |
Modifier and Type | Method and Description |
---|---|
protected void |
create()
Helper routine which usually just turns around and calls
createContext (except for pbuffers, which use a different context
creation mechanism).
|
int |
getOffscreenContextPixelDataType()
Only called for offscreen contexts; needed by glReadPixels
|
int |
getOffscreenContextReadBuffer() |
protected int |
makeCurrentImpl() |
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.
|
bindPbufferToTexture, copy, createContext, destroyImpl, getContext, getGLDrawable, getGLXExt, getGLXExtProcAddressTable, getPlatformExtensionsString, getPlatformGLExtensions, glAllocateMemoryNV, isCreated, isExtensionAvailable, isFunctionAvailable, isOptimizable, lockToolkit, mapToRealGLExtensionName, mapToRealGLFunctionName, releaseImpl, releasePbufferFromTexture, resetGLFunctionAvailability, setSwapInterval, unlockToolkit
createGL, destroy, getBufferSizeTracker, getDeletedObjectTracker, getFloatingPointMode, getGL, getGLProcAddressTable, getObjectTracker, getThreadName, hasWaiters, isSynchronized, makeCurrent, release, resetProcAddressTable, setBufferSizeTracker, setDeletedObjectTracker, setGL, setObjectTracker, setSynchronized, toHexString, update
getCurrent, setCurrent
public X11OffscreenGLContext(X11OffscreenGLDrawable drawable, GLContext shareWith)
public int getOffscreenContextPixelDataType()
GLContextImpl
getOffscreenContextPixelDataType
in class X11GLContext
public int getOffscreenContextReadBuffer()
getOffscreenContextReadBuffer
in class X11GLContext
public boolean offscreenImageNeedsVerticalFlip()
GLContextImpl
offscreenImageNeedsVerticalFlip
in class X11GLContext
protected int makeCurrentImpl() throws GLException
makeCurrentImpl
in class X11GLContext
GLException
protected void create()
X11GLContext
X11GLContext.makeCurrentImpl()
.create
in class X11GLContext
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.