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

public Class MacOSXExternalCGLContext

extends MacOSXCGLContext
Class Inheritance
Imports
com.jogamp.nativewindow.AbstractGraphicsScreen, .DefaultGraphicsScreen, .NativeSurface, .NativeWindowFactory, com.jogamp.opengl.GLCapabilitiesImmutable, .GLContext, .GLDrawableFactory, .GLException, jogamp.nativewindow.WrappedSurface, jogamp.opengl.GLContextShareSet, jogamp.opengl.macosx.cgl.MacOSXCGLDrawable.GLBackendType

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Inherited from jogamp.opengl.macosx.cgl.MacOSXCGLContext:
implisLionOrLaterisMavericksOrLaterisTigerOrLater

Constructor Summary

AccessConstructor and Description
private
MacOSXExternalCGLContext(final MacOSXExternalCGLContext.Drawable drawable, final boolean isNSContext, final long handle)

Method Summary

Modifier and TypeMethod and Description
protected static MacOSXExternalCGLContext
create(final GLDrawableFactory factory)

protected boolean
createImpl(final long
the shared context handle or 0
shareWithHandle
)

Overrides jogamp.opengl.macosx.cgl.MacOSXCGLContext.createImpl.

Platform dependent entry point for context creation.
protected void
protected void
protected void
Inherited from jogamp.opengl.macosx.cgl.MacOSXCGLContext:
associateDrawablecopyImplcreateContextARBImpldestroyContextARBImpldetachPBufferdrawableUpdatedNotifygetCGLExtgetCGLExtProcAddressTablegetExtensionNameMapgetFunctionNameMapgetOpenGLModegetPlatformExtensionsStringImplgetPlatformExtProcAddressTablegetPlatformGLExtensionsGLProfile2CGLOGLProfileValueinitOpenGLImplisGLProfileSupportedisGLReadDrawableAvailableisNSContextresetStatessetOpenGLModesetSwapIntervalImpl2swapBufferstoStringupdateGLXProcAddressTable

Constructor Detail

MacOSXExternalCGLContextback to summary
private MacOSXExternalCGLContext(final MacOSXExternalCGLContext.Drawable drawable, final boolean isNSContext, final long handle)

Method Detail

createback to summary
protected static MacOSXExternalCGLContext create(final GLDrawableFactory factory)
createImplback to summary
protected boolean createImpl(final long shareWithHandle) throws GLException

Overrides jogamp.opengl.macosx.cgl.MacOSXCGLContext.createImpl.

Doc from jogamp.opengl.GLContextImpl.createImpl.

Platform dependent entry point for context creation.

This method is called from makeCurrentWithinLock() .. makeCurrent() .

The implementation shall verify this context with a MakeContextCurrent call.

The implementation must leave the context current.

Non fatal context creation failure via return false is currently implemented for: MacOSXCGLContext.

Parameters
shareWithHandle:long

the shared context handle or 0

Returns:boolean

true if successful. Method returns false if the context creation failed non fatally, hence it may be created at a later time. Otherwise method throws GLException.

Annotations
@Override
Exceptions
GLException:
if method fatally fails creating the context and no attempt shall be made at a later time.
destroyImplback to summary
protected void destroyImpl() throws GLException

Overrides jogamp.opengl.macosx.cgl.MacOSXCGLContext.destroyImpl.

Annotations
@Override
makeCurrentImplback to summary
protected void makeCurrentImpl() throws GLException

Overrides jogamp.opengl.macosx.cgl.MacOSXCGLContext.makeCurrentImpl.

Annotations
@Override
releaseImplback to summary
protected void releaseImpl() throws GLException

Overrides jogamp.opengl.macosx.cgl.MacOSXCGLContext.releaseImpl.

Annotations
@Override
jogamp.opengl.macosx.cgl back to summary

pack-priv Class MacOSXExternalCGLContext.Drawable

extends MacOSXCGLDrawable
Class Inheritance

Field Summary

Inherited from jogamp.opengl.macosx.cgl.MacOSXCGLDrawable:
createdContexts

Constructor Summary

AccessConstructor and Description
pack-priv
Drawable(final GLDrawableFactory factory, final NativeSurface comp)

Method Summary

Modifier and TypeMethod and Description
public GLContext
createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.
public int
getSurfaceHeight()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceHeight.

Implements com.jogamp.opengl.GLDrawable.getSurfaceHeight.

Returns the height of this GLDrawable's surface client area in pixel units.
public int
getSurfaceWidth()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceWidth.

Implements com.jogamp.opengl.GLDrawable.getSurfaceWidth.

Returns the width of this GLDrawable's surface client area in pixel units.
public void
setSize(final int width, final int height)

Inherited from jogamp.opengl.macosx.cgl.MacOSXCGLDrawable:
associateContextgetOpenGLModeinitOpenGLImplsetOpenGLModesetRealizedImplswapBuffersImpl

Constructor Detail

Drawableback to summary
pack-priv Drawable(final GLDrawableFactory factory, final NativeSurface comp)

Method Detail

createContextback to summary
public GLContext createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Doc from com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.

The GLContext share need not be associated with this GLDrawable and may be null if sharing of display lists and other objects is not desired. See the note in the overview documentation context sharing as well as GLSharedContextSetter.

Annotations
@Override
getSurfaceHeightback to summary
public int getSurfaceHeight()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceHeight.

Implements com.jogamp.opengl.GLDrawable.getSurfaceHeight.

Doc from com.jogamp.opengl.GLDrawable.getSurfaceHeight.

Returns the height of this GLDrawable's surface client area in pixel units.

Annotations
@Override
getSurfaceWidthback to summary
public int getSurfaceWidth()

Overrides jogamp.opengl.GLDrawableImpl.getSurfaceWidth.

Implements com.jogamp.opengl.GLDrawable.getSurfaceWidth.

Doc from com.jogamp.opengl.GLDrawable.getSurfaceWidth.

Returns the width of this GLDrawable's surface client area in pixel units.

Annotations
@Override
setSizeback to summary
public void setSize(final int width, final int height)