Top Inners Fields Constructors Methods
jogamp.opengl.macosx.cgl

public Class MacOSXCGLContext

extends GLContextImpl
Class Inheritance
Known Direct Subclasses
jogamp.opengl.macosx.cgl.MacOSXExternalCGLContext
Imports
java.nio.IntBuffer, java.util.Map, com.jogamp.nativewindow.AbstractGraphicsConfiguration, .AbstractGraphicsDevice, .NativeSurface, .NativeWindowFactory, .OffscreenLayerSurface, .ProxySurface, com.jogamp.opengl.GL, .GL2ES2, .GL3ES3, .GLCapabilities, .GLCapabilitiesImmutable, .GLContext, .GLException, .GLProfile, .GLUniformData, .GLRendererQuirks, com.jogamp.opengl.fixedfunc.GLMatrixFunc, jogamp.nativewindow.macosx.OSXUtil, jogamp.opengl.GLContextImpl, .GLDrawableImpl, .GLDynamicLookupHelper, .GLFBODrawableImpl, .GLGraphicsConfigurationUtil, jogamp.opengl.macosx.cgl.MacOSXCGLDrawable.GLBackendType, com.jogamp.common.nio.Buffers, .PointerBuffer, com.jogamp.common.os.Platform, com.jogamp.common.util.VersionNumber, com.jogamp.common.util.locks.RecursiveLock, com.jogamp.gluegen.runtime.ProcAddressTable, com.jogamp.gluegen.runtime.opengl.GLProcAddressResolver, com.jogamp.opengl.util.PMVMatrix, com.jogamp.opengl.util.glsl.ShaderCode, .ShaderProgram

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv class
protected static interface
pack-priv class

Field Summary

Modifier and TypeField and Description
private CGLExt
private CGLExtProcAddressTable
private boolean
protected MacOSXCGLContext.GLBackendImpl
pack-priv static final boolean
pack-priv static final boolean
pack-priv static final boolean
private int
private int
private MacOSXCGLDrawable.GLBackendType
private static final String
private long
Inherited from jogamp.opengl.GLContextImpl:
drawabledrawableReadextensionAvailabilityglmappedContextTypeObjectLockmappedExtensionAvailabilityCachemappedGLProcAddressmappedGLXProcAddress

Constructor Summary

AccessConstructor and Description
protected
MacOSXCGLContext(final GLDrawableImpl drawable, final GLContext shareWith)

Method Summary

Modifier and TypeMethod and Description
protected void
protected void
copyImpl(final GLContext source, final int mask)

Implements abstract jogamp.opengl.GLContextImpl.copyImpl.

private static ShaderProgram
protected long
createContextARBImpl(final long
the shared context or null
share
,
final boolean
flag if direct is requested
direct
,
final int
ARB_create_context related, see references below
ctp
,
final int
major number
major
,
final int
minor number
minor
)

Implements abstract jogamp.opengl.GLContextImpl.createContextARBImpl.

Platform dependent but harmonized implementation of the ARB_create_context mechanism to create a context.
protected boolean
createImpl(final long
the shared context handle or 0
shareWithHandle
)

Implements abstract jogamp.opengl.GLContextImpl.createImpl.

Platform dependent entry point for context creation.
protected void
destroyContextARBImpl(final long _context)

Implements abstract jogamp.opengl.GLContextImpl.destroyContextARBImpl.

Destroy the context created by createContextARBImpl.
protected void
pack-priv void
protected void
drawableUpdatedNotify()

Overrides jogamp.opengl.GLContextImpl.drawableUpdatedNotify.

Call this method to notify the OpenGL context that the drawable has changed (size or position).
public CGLExt
public final CGLExtProcAddressTable
protected Map<String, String>
protected Map<String, String>
public final MacOSXCGLDrawable.GLBackendType
protected final StringBuilder
public final ProcAddressTable
getPlatformExtProcAddressTable()

Implements abstract jogamp.opengl.GLContextImpl.getPlatformExtProcAddressTable.

Shall return the platform extension ProcAddressTable, ie for GLXExt, EGLExt, ..
public Object
private final long
pack-priv static int
GLProfile2CGLOGLProfileValue(final AbstractGraphicsDevice device, final int ctp, final int major, final int minor)

protected void
pack-priv static boolean
isGLProfileSupported(final int ctp, final int major, final int minor)

public final boolean
isGLReadDrawableAvailable()

Implements abstract com.jogamp.opengl.GLContext.isGLReadDrawableAvailable.

Query whether using a distinguished read-drawable is supported.
protected boolean
protected void
protected void
private final void
protected void
resetStates(final boolean
true if called for class initialization, otherwise false (re-init or destruction).
isInit
)

Overrides jogamp.opengl.GLContextImpl.resetStates.

public void
protected final Integer
protected void
public String
toString()

Overrides com.jogamp.opengl.GLContext.toString.

Classname, GL, GLDrawable
protected final void
updateGLXProcAddressTable(final String
provides a fully qualified key of the context including device and GL profile
contextFQN
,
final GLDynamicLookupHelper dlh)

Implements abstract jogamp.opengl.GLContextImpl.updateGLXProcAddressTable.

Updates the platform's 'GLX' function cache

Ignoring contextFQN, using MacOSX-AbstractGraphicsDevice#getUniqueID().

Inherited from jogamp.opengl.GLContextImpl:
addGLDebugListenercontextMadeCurrentcopycreateContextARBdestroyenableGLDebugMessagegetBoundFramebuffergetBufferObjectTrackergetBufferStateTrackergetContextCreationFlagsgetContextFQNgetContextFQNgetCreateContextARBAvailStrgetCtxOptionsgetDefaultDrawFramebuffergetDefaultPixelDataFormatgetDefaultPixelDataTypegetDefaultReadBuffergetDefaultReadFramebuffergetDefaultVAOgetDrawableImplgetGLgetGLDebugMessageExtensiongetGLDrawablegetGLDynamicLookupHelpergetGLDynamicLookupHelpergetGLExtensionCountgetGLExtensionsStringgetGLProcAddressTablegetGLReadDrawablegetGLStateTrackergetLockCountgetPlatformExtensionCountgetPlatformExtensionsStringgetRootGLgetSwapIntervalglDebugMessageControlglDebugMessageControlglDebugMessageInserthasWaitersisCreateContextARBAvailisExtensionAvailableisExtensionCacheInitializedisFunctionAvailableisGLDebugMessageEnabledisGLDebugSynchronousisOwnerisSurfacelessmakeCurrentmakeCurrentmapAvailableGLVersionmapToRealGLExtensionNamemapToRealGLFunctionNamereleaseremapAvailableGLVersionsremoveGLDebugListenerresetProcAddressTablesetBoundFramebuffersetContextCreationFlagssetDefaultSwapIntervalsetGLsetGLDebugSynchronoussetGLDrawablesetGLFunctionAvailabilitysetGLReadDrawablesetMappedGLVersionListenersetSwapIntervalsetSwapIntervalNCshutdownImpl