Top Fields Constructors Methods
jogamp.opengl.egl

public Class EGLDrawable

extends GLDrawableImpl
Class Inheritance
Imports
com.jogamp.common.ExceptionUtils, com.jogamp.nativewindow.ProxySurface, com.jogamp.opengl.GLContext, .GLException, jogamp.nativewindow.ProxySurfaceImpl, jogamp.opengl.GLDrawableImpl, com.jogamp.nativewindow.egl.EGLGraphicsDevice, com.jogamp.opengl.egl.EGL

Field Summary

Modifier and TypeField and Description
pack-priv static boolean
Inherited from jogamp.opengl.GLDrawableImpl:
factoryrealizedrequestedCapabilitiessurface

Constructor Summary

AccessConstructor and Description
protected
EGLDrawable(final EGLDrawableFactory factory, final EGLSurface component)

Method Summary

Modifier and TypeMethod and Description
public final 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.
protected final void
createHandle()

Overrides jogamp.opengl.GLDrawableImpl.createHandle.

called with locked surface @ setRealized(true) or @ lockSurface(..) when surface changed

Must be paired w/ destroyHandle().

protected void
destroyHandle()

Overrides jogamp.opengl.GLDrawableImpl.destroyHandle.

called with locked surface @ setRealized(false) or @ lockSurface(..) when surface changed

Must be paired w/ createHandle().

protected final 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.
public String
toString()

Overrides jogamp.opengl.GLDrawableImpl.toString.

Implements com.jogamp.opengl.GLDrawable.toString.

Returns a string representation of the object.
Inherited from jogamp.opengl.GLDrawableImpl:
associateContextcontextMadeCurrentgetChosenGLCapabilitiesgetDefaultDrawFramebuffergetDefaultReadBuffergetDefaultReadFramebuffergetFactorygetFactoryImplgetGLProfilegetHandlegetNativeSurfacegetRequestedGLCapabilitiesgetSurfaceHeightgetSurfaceWidthgetThreadNameisGLOrientedisRealizedlockSurfacesetRealizedswapBufferstoHexStringunlockSurface

Field Detail

DEBUGback to summary
pack-priv static boolean DEBUG

Hides jogamp.opengl.GLDrawableImpl.DEBUG.

Constructor Detail

EGLDrawableback to summary
protected EGLDrawable(final EGLDrawableFactory factory, final EGLSurface component) throws GLException

Method Detail

createContextback to summary
public final 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
createHandleback to summary
protected final void createHandle()

Overrides jogamp.opengl.GLDrawableImpl.createHandle.

Doc from jogamp.opengl.GLDrawableImpl.createHandle.

called with locked surface @ setRealized(true) or @ lockSurface(..) when surface changed

Must be paired w/ destroyHandle().

Annotations
@Override
destroyHandleback to summary
protected void destroyHandle()

Overrides jogamp.opengl.GLDrawableImpl.destroyHandle.

Doc from jogamp.opengl.GLDrawableImpl.destroyHandle.

called with locked surface @ setRealized(false) or @ lockSurface(..) when surface changed

Must be paired w/ createHandle().

Annotations
@Override
setRealizedImplback to summary
protected final 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
toStringback to summary
public String toString()

Overrides jogamp.opengl.GLDrawableImpl.toString.

Implements com.jogamp.opengl.GLDrawable.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override