com.sun.opengl.impl.x11
Class X11OffscreenGLContext

java.lang.Object
  extended by javax.media.opengl.GLContext
      extended by com.sun.opengl.impl.GLContextImpl
          extended by com.sun.opengl.impl.x11.X11GLContext
              extended by com.sun.opengl.impl.x11.X11OffscreenGLContext

public class X11OffscreenGLContext
extends X11GLContext


Field Summary
 
Fields inherited from class com.sun.opengl.impl.x11.X11GLContext
context, mostRecentDisplay
 
Fields inherited from class com.sun.opengl.impl.GLContextImpl
DEBUG, functionAvailability, gl, lock, NO_FREE, optimizationEnabled, VERBOSE
 
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, copy, createContext, destroyImpl, getContext, getGLDrawable, getGLXExt, getGLXExtProcAddressTable, getPlatformExtensionsString, getPlatformGLExtensions, glAllocateMemoryNV, isCreated, isExtensionAvailable, isFunctionAvailable, isOptimizable, lockToolkit, mapToRealGLExtensionName, mapToRealGLFunctionName, releaseImpl, releasePbufferFromTexture, resetGLFunctionAvailability, setSwapInterval, unlockToolkit
 
Methods inherited from class com.sun.opengl.impl.GLContextImpl
createGL, destroy, getBufferSizeTracker, getDeletedObjectTracker, getFloatingPointMode, getGL, getGLProcAddressTable, getObjectTracker, getThreadName, hasWaiters, isSynchronized, makeCurrent, release, resetProcAddressTable, setBufferSizeTracker, setDeletedObjectTracker, setGL, setObjectTracker, setSynchronized, toHexString, update
 
Methods inherited from class javax.media.opengl.GLContext
getCurrent, setCurrent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X11OffscreenGLContext

public X11OffscreenGLContext(X11OffscreenGLDrawable drawable,
                             GLContext shareWith)
Method Detail

getOffscreenContextPixelDataType

public int getOffscreenContextPixelDataType()
Description copied from class: GLContextImpl
Only called for offscreen contexts; needed by glReadPixels

Overrides:
getOffscreenContextPixelDataType in class X11GLContext

getOffscreenContextReadBuffer

public int getOffscreenContextReadBuffer()
Overrides:
getOffscreenContextReadBuffer in class X11GLContext

offscreenImageNeedsVerticalFlip

public boolean offscreenImageNeedsVerticalFlip()
Description copied from class: GLContextImpl
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 class X11GLContext

makeCurrentImpl

protected int makeCurrentImpl()
                       throws GLException
Overrides:
makeCurrentImpl in class X11GLContext
Throws:
GLException

create

protected void create()
Description copied from class: X11GLContext
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 X11GLContext.makeCurrentImpl().

Specified by:
create in class X11GLContext


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