com.jogamp.opengl.impl.egl
Class EGLExternalContext

java.lang.Object
  extended by javax.media.opengl.GLContext
      extended by com.jogamp.opengl.impl.GLContextImpl
          extended by com.jogamp.opengl.impl.egl.EGLContext
              extended by com.jogamp.opengl.impl.egl.EGLExternalContext

public class EGLExternalContext
extends EGLContext


Field Summary
 
Fields inherited from class com.jogamp.opengl.impl.GLContextImpl
currentSwapInterval, DEBUG, drawable, drawableRead, extensionAvailability, gl, hasNativeES2Methods, lock, mappedContextTypeObjectLock, mappedExtensionAvailabilityCache, mappedGLProcAddress, mappedGLXProcAddress
 
Fields inherited from class javax.media.opengl.GLContext
CONTEXT_CURRENT, CONTEXT_CURRENT_NEW, CONTEXT_NOT_CURRENT, contextHandle, CTX_IS_ARB_CREATED, CTX_OPTION_ANY, CTX_OPTION_DEBUG, CTX_OPTION_FORWARD, CTX_PROFILE_COMPAT, CTX_PROFILE_CORE, CTX_PROFILE_ES, ctxMajorVersion, ctxMinorVersion, ctxOptions, ctxVersionString, DEBUG0, deviceVersionAvailable, GL_VERSIONS
 
Constructor Summary
EGLExternalContext(AbstractGraphicsScreen screen)
           
 
Method Summary
 void bindPbufferToTexture()
          Pbuffer support; given that this is a GLContext associated with a pbuffer, binds this pbuffer to its texture target.
protected  void destroyImpl()
           
 int makeCurrent()
          MakeCurrent functionality, which also issues the creation of the actual OpenGL context.
The complete callgraph for general OpenGL context creation is:
GLContextImpl.makeCurrent() GLContextImpl GLContextImpl.makeCurrentImpl(boolean) Platform Implementation #create Platform Implementation If ARB_create_context is supported: GLContextImpl.createContextARB(long, boolean, int[], int[], int[]) GLContextImpl GLContextImpl.createContextARBImpl(long, boolean, int, int, int) Platform Implementation
Once at startup, ie triggered by the singleton constructor of a GLDrawableFactoryImpl specialization, calling GLContextImpl.createContextARB(long, boolean, int[], int[], int[]) will query all available OpenGL versions:
FOR ALL GL* DO: GLContextImpl.createContextARBMapVersionsAvailable(int, boolean) GLContextImpl.createContextARBVersions(long, boolean, int, int, int, int, int, int[], int[]) #mapVersionAvailable
protected  void makeCurrentImpl(boolean newCreated)
           
 void release()
          Releases control of this GLContext from the current thread.
protected  void releaseImpl()
           
 void releasePbufferFromTexture()
          Pbuffer support; given that this is a GLContext associated with a pbuffer, releases this pbuffer from its texture target.
 
Methods inherited from class com.jogamp.opengl.impl.egl.EGLContext
copyImpl, createContextARBImpl, createImpl, destroyContextARBImpl, getEGLExt, getEGLExtProcAddressTable, getExtensionNameMap, getFunctionNameMap, getOffscreenContextPixelDataType, getPlatformExtensionsString, getPlatformExtProcAddressTable, getPlatformGLExtensions, glAllocateMemoryNV, isGLReadDrawableAvailable, offscreenImageNeedsVerticalFlip, setSwapIntervalImpl, updateGLXProcAddressTable
 
Methods inherited from class com.jogamp.opengl.impl.GLContextImpl
copy, createContextARB, createGL, destroy, getBufferSizeTracker, getBufferStateTracker, getContextFQN, getContextFQN, getDrawableImpl, getFloatingPointMode, getGL, getGLDrawable, getGLExtensionsString, getGLProcAddressTable, getGLReadDrawable, getGLStateTracker, getSwapInterval, hasNativeES2Methods, hasWaiters, isExtensionAvailable, isExtensionCacheInitialized, isFunctionAvailable, isSynchronized, makeCurrentLocking, mapToRealGLExtensionName, mapToRealGLFunctionName, resetProcAddressTable, resetStates, setBufferSizeTracker, setGL, setGLFunctionAvailability, setGLReadDrawable, setSwapInterval, setSynchronized, update
 
Methods inherited from class javax.media.opengl.GLContext
append, compose8bit, composed8BitToString, decrementGLVersion, getAttachedObject, getAttachedObject, getAvailableGLVersion, getAvailableGLVersion, getAvailableGLVersionAsString, getAvailableGLVersionsSet, getComposed8bit, getCurrent, getCurrentGL, getDeviceVersionAvailableKey, getGLVersion, getGLVersion, getGLVersionMajor, getGLVersionMinor, getHandle, getMaxMajor, getMaxMinor, getThreadName, hasGLSL, isCreated, isCreatedWithARBMethod, isCurrent, isGL2, isGL2Available, isGL2ES1, isGL2ES2, isGL2GL3, isGL3, isGL3Available, isGL3bc, isGL3bcAvailable, isGL4, isGL4Available, isGL4bc, isGL4bcAvailable, isGLCompatibilityProfile, isGLCoreProfile, isGLEmbeddedProfile, isGLES, isGLES1, isGLES1Available, isGLES2, isGLES2Available, isGLForwardCompatible, isGLVersionAvailable, isValidGLVersion, mapAvailableGLVersion, putAttachedObject, putAttachedObject, setAvailableGLVersionsSet, setCurrent, toHexString, toHexString, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EGLExternalContext

public EGLExternalContext(AbstractGraphicsScreen screen)
Method Detail

makeCurrent

public int makeCurrent()
                throws GLException
Description copied from class: GLContextImpl
MakeCurrent functionality, which also issues the creation of the actual OpenGL context.
The complete callgraph for general OpenGL context creation is:

Once at startup, ie triggered by the singleton constructor of a GLDrawableFactoryImpl specialization, calling GLContextImpl.createContextARB(long, boolean, int[], int[], int[]) will query all available OpenGL versions:

Overrides:
makeCurrent in class GLContextImpl
Returns:
CONTEXT_CURRENT if the context was successfully made current
Throws:
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.
See Also:
GLContextImpl.makeCurrentImpl(boolean), #create, GLContextImpl.createContextARB(long, boolean, int[], int[], int[]), GLContextImpl.createContextARBImpl(long, boolean, int, int, int), #mapVersionAvailable, GLContextImpl.destroyContextARBImpl(long)

release

public void release()
             throws GLException
Description copied from class: GLContext
Releases control of this GLContext from the current thread.

Overrides:
release in class GLContextImpl
Throws:
GLException - if the context had not previously been made current on the current thread

makeCurrentImpl

protected void makeCurrentImpl(boolean newCreated)
                        throws GLException
Overrides:
makeCurrentImpl in class EGLContext
Throws:
GLException

releaseImpl

protected void releaseImpl()
                    throws GLException
Overrides:
releaseImpl in class EGLContext
Throws:
GLException

destroyImpl

protected void destroyImpl()
                    throws GLException
Overrides:
destroyImpl in class EGLContext
Throws:
GLException

bindPbufferToTexture

public void bindPbufferToTexture()
Description copied from class: GLContextImpl
Pbuffer support; given that this is a GLContext associated with a pbuffer, binds this pbuffer to its texture target.

Specified by:
bindPbufferToTexture in class EGLContext

releasePbufferFromTexture

public void releasePbufferFromTexture()
Description copied from class: GLContextImpl
Pbuffer support; given that this is a GLContext associated with a pbuffer, releases this pbuffer from its texture target.

Specified by:
releasePbufferFromTexture in class EGLContext


Copyright 2010 JogAmp Community.