com.jogamp.opengl.impl.macosx.cgl.awt
Class MacOSXJava2DCGLContext

java.lang.Object
  extended by javax.media.opengl.GLContext
      extended by com.jogamp.opengl.impl.GLContextImpl
          extended by com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLContext
              extended by com.jogamp.opengl.impl.macosx.cgl.awt.MacOSXJava2DCGLContext
All Implemented Interfaces:
Java2DGLContext

public class MacOSXJava2DCGLContext
extends MacOSXCGLContext
implements Java2DGLContext

MacOSXCGLContext implementation supporting the Java2D/JOGL bridge on Mac OS X. The external GLDrawable mechanism does not work on Mac OS X due to how drawables and contexts are operated upon on this platform, so it is necessary to supply an alternative means to create, make current, and destroy contexts on the Java2D "drawable" on the Mac platform.


Field Summary
 
Fields inherited from class com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLContext
isNSContext
 
Fields inherited from class com.jogamp.opengl.impl.GLContextImpl
contextFQN, 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
 
Method Summary
protected  boolean createImpl()
           
protected  void destroyImpl()
           
 int getOpenGLMode()
           
protected  void makeCurrentImpl(boolean newCreated)
           
protected  void releaseImpl()
           
 void setGraphics(Graphics g)
           
 void setOpenGLMode(int mode)
           
 
Methods inherited from class com.jogamp.opengl.impl.macosx.cgl.MacOSXCGLContext
bindPbufferToTexture, copyImpl, create, createContextARBImpl, destroyContextARBImpl, getCGLExt, getCGLExtProcAddressTable, getExtensionNameMap, getFunctionNameMap, getOffscreenContextPixelDataType, getOffscreenContextReadBuffer, getPlatformExtensionsString, getPlatformExtProcAddressTable, getPlatformGLExtensions, glAllocateMemoryNV, isExtensionAvailable, isGLReadDrawableAvailable, isNSContext, offscreenImageNeedsVerticalFlip, releasePbufferFromTexture, setSwapIntervalImpl, swapBuffers, updateGLXProcAddressTable
 
Methods inherited from class com.jogamp.opengl.impl.GLContextImpl
copy, createContextARB, createGL, destroy, getBufferSizeTracker, getBufferStateTracker, getDrawableImpl, getFloatingPointMode, getGL, getGLDrawable, getGLExtensionsString, getGLProcAddressTable, getGLReadDrawable, getGLStateTracker, getSwapInterval, hasNativeES2Methods, hasWaiters, isExtensionCacheInitialized, isFunctionAvailable, isSynchronized, makeCurrent, makeCurrentLocking, mapToRealGLExtensionName, mapToRealGLFunctionName, release, 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, getContextFQN, 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
 

Method Detail

setGraphics

public void setGraphics(Graphics g)
Specified by:
setGraphics in interface Java2DGLContext

makeCurrentImpl

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

createImpl

protected boolean createImpl()
Specified by:
createImpl in class GLContextImpl

releaseImpl

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

destroyImpl

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

setOpenGLMode

public void setOpenGLMode(int mode)
Specified by:
setOpenGLMode in class MacOSXCGLContext

getOpenGLMode

public int getOpenGLMode()
Specified by:
getOpenGLMode in class MacOSXCGLContext


Copyright 2010 JogAmp Community.