com.sun.opengl.impl.x11
Class X11ExternalGLContext
public class X11ExternalGLContext
protected void | create() - Helper routine which usually just turns around and calls
createContext (except for pbuffers, which use a different context
creation mechanism).
|
protected void | destroyImpl()
|
boolean | isCreated()
|
int | makeCurrent() - Makes this GLContext current on the calling thread.
|
protected int | makeCurrentImpl()
|
void | release() - Releases control of this GLContext from the current thread.
|
protected void | releaseImpl()
|
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 |
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 |
X11ExternalGLContext
public X11ExternalGLContext()
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()
.
- create in interface X11GLContext
makeCurrent
public int makeCurrent()
throws GLException
Makes this GLContext current on the calling thread.
There are two return values that indicate success and one that
indicates failure. A return value of CONTEXT_CURRENT_NEW
indicates that that context has been made current, and that
this is the first time this context has been made current, or
that the state of the underlying context or drawable may have
changed since the last time this context was made current. In
this case, the application may wish to initialize the state. A
return value of CONTEXT_CURRENT indicates that the context has
been made currrent, with its previous state restored.
If the context could not be made current (for example, because
the underlying drawable has not ben realized on the display) ,
a value of CONTEXT_NOT_CURRENT is returned.
If the context is in use by another thread at the time of the
call, then if isSynchronized() is true the call will
block. If isSynchronized() is false, an exception will be
thrown and the context will remain current on the other thread.
- makeCurrent in interface GLContextImpl
- CONTEXT_CURRENT if the context was successfully made current
GLException
- if synchronization is disabled and the
context is current on another thread, or because the context
could not be created or made current due to non-recoverable,
window system-specific errors.
release
public void release()
throws GLException
Releases control of this GLContext from the current thread.
- release in interface GLContextImpl
GLException
- if the context had not previously been made
current on the current thread
Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.