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

public abstract Class MacOSXCGLDrawable

extends GLDrawableImpl
Class Inheritance
Known Direct Subclasses
jogamp.opengl.macosx.cgl.MacOSXExternalCGLContext.Drawable, jogamp.opengl.macosx.cgl.MacOSXOnscreenCGLDrawable, jogamp.opengl.macosx.cgl.MacOSXPbufferCGLDrawable
Imports
java.lang.ref.WeakReference, java.util.ArrayList, .List, com.jogamp.nativewindow.NativeSurface, com.jogamp.opengl.GLContext, .GLDrawableFactory, .GLException, jogamp.opengl.GLDrawableImpl

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
pack-priv List<WeakReference<MacOSXCGLContext>>
private boolean
private MacOSXCGLDrawable.GLBackendType
Inherited from jogamp.opengl.GLDrawableImpl:
DEBUGfactoryrealizedrequestedCapabilitiessurface

Constructor Summary

AccessConstructor and Description
public
MacOSXCGLDrawable(final GLDrawableFactory factory, final NativeSurface comp, final boolean realized)

Method Summary

Modifier and TypeMethod and Description
protected void
associateContext(final GLContext
the just bounded or unbounded context
ctx
,
final boolean
if true create an association, otherwise remove it
bound
)

Overrides jogamp.opengl.GLDrawableImpl.associateContext.

Callback for special implementations, allowing
  • to associate bound context to this drawable (bound == true) or to remove such association (bound == false).
  • to trigger GLContext/GLDrawable related lifecycle: construct, destroy.
public final MacOSXCGLDrawable.GLBackendType
protected void
public void
protected void
setRealizedImpl()

Implements abstract jogamp.opengl.GLDrawableImpl.setRealizedImpl.

Platform specific realization of drawable
protected final void
swapBuffersImpl(final boolean
indicates whether double buffering is enabled, see above.
doubleBuffered
)

Implements abstract jogamp.opengl.GLDrawableImpl.swapBuffersImpl.

Platform and implementation depending surface swap.
Inherited from jogamp.opengl.GLDrawableImpl:
contextMadeCurrentcreateHandledestroyHandlegetChosenGLCapabilitiesgetDefaultDrawFramebuffergetDefaultReadBuffergetDefaultReadFramebuffergetFactorygetFactoryImplgetGLProfilegetHandlegetNativeSurfacegetRequestedGLCapabilitiesgetSurfaceHeightgetSurfaceWidthgetThreadNameisGLOrientedisRealizedlockSurfacesetRealizedswapBufferstoHexStringtoStringunlockSurface

Field Detail

createdContextsback to summary
pack-priv List<WeakReference<MacOSXCGLContext>> createdContexts
haveSetOpenGLModeback to summary
private boolean haveSetOpenGLMode
openGLModeback to summary
private MacOSXCGLDrawable.GLBackendType openGLMode

Constructor Detail

MacOSXCGLDrawableback to summary
public MacOSXCGLDrawable(final GLDrawableFactory factory, final NativeSurface comp, final boolean realized)

Method Detail

associateContextback to summary
protected void associateContext(final GLContext ctx, final boolean bound)

Overrides jogamp.opengl.GLDrawableImpl.associateContext.

Doc from jogamp.opengl.GLDrawableImpl.associateContext.

Callback for special implementations, allowing

  • to associate bound context to this drawable (bound == true) or to remove such association (bound == false).
  • to trigger GLContext/GLDrawable related lifecycle: construct, destroy.

If bound is true, the context is current and being newly associated w/ this drawable.

If bound is false, the context is still current and will be unbound (released and destroyed, or simply disassociated).

Being called by GLContextImpl#associateDrawable(boolean).

Parameters
ctx:GLContext

the just bounded or unbounded context

bound:boolean

if true create an association, otherwise remove it

Annotations
@Override
getOpenGLModeback to summary
public final MacOSXCGLDrawable.GLBackendType getOpenGLMode()
initOpenGLImplback to summary
protected void initOpenGLImpl(final MacOSXCGLDrawable.GLBackendType backend)
setOpenGLModeback to summary
public void setOpenGLMode(final MacOSXCGLDrawable.GLBackendType mode)
setRealizedImplback to summary
protected void setRealizedImpl()

Implements abstract jogamp.opengl.GLDrawableImpl.setRealizedImpl.

Doc from jogamp.opengl.GLDrawableImpl.setRealizedImpl.

Platform specific realization of drawable

Annotations
@Override
swapBuffersImplback to summary
protected final void swapBuffersImpl(final boolean doubleBuffered)

Implements abstract jogamp.opengl.GLDrawableImpl.swapBuffersImpl.

Doc from jogamp.opengl.GLDrawableImpl.swapBuffersImpl.

Platform and implementation depending surface swap.

The surface is locked.

If doubleBuffered is true, an actual platform dependent surface swap shall be executed.

If doubleBuffered is false, GL#glFlush() has been called already and the implementation may execute implementation specific code.

Parameters
doubleBuffered:boolean

indicates whether double buffering is enabled, see above.

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

public final Enum MacOSXCGLDrawable.GLBackendType

extends Enum<MacOSXCGLDrawable.GLBackendType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final MacOSXCGLDrawable.GLBackendType
CGL

Alternative OpenGL Backend, only used for external context!

public final int
public static final MacOSXCGLDrawable.GLBackendType
NSOPENGL

Default OpenGL Backend

Constructor Summary

AccessConstructor and Description
private
GLBackendType(final int id)

Method Summary

Modifier and TypeMethod and Description
public static MacOSXCGLDrawable.GLBackendType
public static MacOSXCGLDrawable.GLBackendType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CGLback to summary
public static final MacOSXCGLDrawable.GLBackendType CGL

Alternative OpenGL Backend, only used for external context!

idback to summary
public final int id
NSOPENGLback to summary
public static final MacOSXCGLDrawable.GLBackendType NSOPENGL

Default OpenGL Backend

Constructor Detail

GLBackendTypeback to summary
private GLBackendType(final int id)

Method Detail

valueOfback to summary
public static MacOSXCGLDrawable.GLBackendType valueOf(String name)
valuesback to summary
public static MacOSXCGLDrawable.GLBackendType[] values()