com.sun.opengl.impl.x11

Class X11OffscreenGLContext


public class X11OffscreenGLContext
extends X11GLContext

Field Summary

Fields inherited from class com.sun.opengl.impl.x11.X11GLContext

context, drawable, mostRecentDisplay

Fields inherited from class com.sun.opengl.impl.GLContextImpl

DEBUG, NO_FREE, VERBOSE, functionAvailability, gl, lock, optimizationEnabled

Fields inherited from class javax.media.opengl.GLContext

CONTEXT_CURRENT, CONTEXT_CURRENT_NEW, CONTEXT_NOT_CURRENT

Constructor Summary

X11OffscreenGLContext(X11OffscreenGLDrawable drawable, GLContext shareWith)

Method Summary

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.

Methods inherited from class com.sun.opengl.impl.x11.X11GLContext

bindPbufferToTexture, create, createContext, destroyImpl, getContext, getGLDrawable, getGLXExt, getGLXExtProcAddressTable, getOffscreenContextPixelDataType, getOffscreenContextReadBuffer, getPlatformExtensionsString, getPlatformGLExtensions, glAllocateMemoryNV, isCreated, isExtensionAvailable, isFunctionAvailable, isOptimizable, lockToolkit, makeCurrentImpl, mapToRealGLExtensionName, mapToRealGLFunctionName, offscreenImageNeedsVerticalFlip, releaseImpl, releasePbufferFromTexture, resetGLFunctionAvailability, setSwapInterval, unlockToolkit

Methods inherited from class com.sun.opengl.impl.GLContextImpl

bindPbufferToTexture, createGL, destroy, destroyImpl, getDeletedObjectTracker, getFloatingPointMode, getGL, getGLProcAddressTable, getObjectTracker, getOffscreenContextPixelDataType, getPlatformExtensionsString, getPlatformGLExtensions, getThreadName, glAllocateMemoryNV, hasWaiters, isCreated, isExtensionAvailable, isFunctionAvailable, isOptimizable, isSynchronized, makeCurrent, makeCurrentImpl, mapToRealGLExtensionName, mapToRealGLFunctionName, offscreenImageNeedsVerticalFlip, release, releaseImpl, releasePbufferFromTexture, resetGLFunctionAvailability, resetProcAddressTable, setDeletedObjectTracker, setGL, setObjectTracker, setSwapInterval, setSynchronized, toHexString, update

Methods inherited from class javax.media.opengl.GLContext

destroy, getCurrent, getGL, getGLDrawable, isSynchronized, makeCurrent, release, setCurrent, setGL, setSynchronized

Constructor Details

X11OffscreenGLContext

public X11OffscreenGLContext(X11OffscreenGLDrawable drawable,
                             GLContext shareWith)

Method Details

create

protected void create()
Helper routine which usually just turns around and calls createContext (except for pbuffers, which use a different context creation mechanism). Should only be called by makeCurrentImpl().
Overrides:
create in interface X11GLContext

getOffscreenContextPixelDataType

public int getOffscreenContextPixelDataType()
Only called for offscreen contexts; needed by glReadPixels
Overrides:
getOffscreenContextPixelDataType in interface X11GLContext

getOffscreenContextReadBuffer

public int getOffscreenContextReadBuffer()
Overrides:
getOffscreenContextReadBuffer in interface X11GLContext

makeCurrentImpl

protected int makeCurrentImpl()
            throws GLException
Overrides:
makeCurrentImpl in interface X11GLContext

offscreenImageNeedsVerticalFlip

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

Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.