| Modifier and Type | Field and Description |
|---|---|
| protected static final boolean | |
| protected final GLDrawableFactory | |
| protected volatile boolean | |
| protected final GLCapabilitiesImmutable | |
| protected final NativeSurface |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | GLDrawableImpl(final GLDrawableFactory factory, final NativeSurface comp, final GLCapabilitiesImmutable requestedCapabilities, final boolean realized)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | associateContext(final GLContext
the just bounded or unbounded context ctx, final boolean if bound)true create an association, otherwise remove itCallback for special implementations, allowing
|
| protected void | contextMadeCurrent(final GLContext glc, final boolean current)
Callback for special implementations, allowing GLContext to trigger GL related lifecycle: |
| protected void | createHandle()
called with locked surface @ setRealized(true) or @ lockSurface(..) when surface changed
Must be paired w/ |
| protected void | destroyHandle()
called with locked surface @ setRealized(false) or @ lockSurface(..) when surface changed
Must be paired w/ |
| public final GLCapabilitiesImmutable | getChosenGLCapabilities()
Implements com. GLCapabilitiesImmutable corresponding to the chosen
OpenGL capabilities (pixel format / visual / GLProfile) for this drawable.
|
| protected int | getDefaultDrawFramebuffer()
Callback for special implementations, allowing GLContext to fetch a custom default render framebuffer. |
| protected int | getDefaultReadBuffer(final GL gl, final boolean hasDedicatedDrawableRead)
Callback for special implementations, allowing GLContext to fetch a custom default read buffer of current framebuffer. |
| protected int | getDefaultReadFramebuffer()
Callback for special implementations, allowing GLContext to fetch a custom default read framebuffer. |
| public final GLDrawableFactory | getFactory()
Implements com. GLDrawableFactory being used to create this instance.
|
| public final GLDrawableFactoryImpl | |
| public final GLProfile | getGLProfile()
Implements com. GLProfile for this drawable.
|
| public long | getHandle()
Implements com. realization
and while it's surface is being locked.
|
| public NativeSurface | getNativeSurface()
Implements com. NativeSurface of this NativeSurfaceHolder.
|
| public final GLCapabilitiesImmutable | getRequestedGLCapabilities()
Implements com. GLCapabilitiesImmutable corresponding to the user requested
OpenGL capabilities (pixel format / visual / GLProfile) for this drawable.
|
| public int | getSurfaceHeight()
Implements com. GLDrawable's surface client area in pixel units.
|
| public int | getSurfaceWidth()
Implements com. GLDrawable's surface client area in pixel units.
|
| protected static String | |
| public boolean | isGLOriented()
Implements com. true if the drawable is rendered in
OpenGL's coordinate system, origin at bottom left.
|
| public final boolean | isRealized()
Implements com. true if this drawable is realized, otherwise true.
|
| public final int | |
| public final void | setRealized(final boolean realizedArg)
Implements com. surface has been created and can be drawn into.
|
| protected abstract void | |
| public final void | swapBuffers()
Implements com. |
| protected abstract void | swapBuffersImpl(boolean
indicates whether double buffering is enabled, see above. doubleBuffered)Platform and implementation depending surface swap. |
| public static final String | |
| public String | toString()
Overrides java. Implements com. |
| public final void | unlockSurface()
|
| DEBUG | back to summary |
|---|---|
| protected static final boolean DEBUG | |
| factory | back to summary |
|---|---|
| protected final GLDrawableFactory factory | |
| realized | back to summary |
|---|---|
| protected volatile boolean realized | |
| requestedCapabilities | back to summary |
|---|---|
| protected final GLCapabilitiesImmutable requestedCapabilities | |
| surface | back to summary |
|---|---|
| protected final NativeSurface surface | |
| GLDrawableImpl | back to summary |
|---|---|
| protected GLDrawableImpl(final GLDrawableFactory factory, final NativeSurface comp, final boolean realized) | |
| GLDrawableImpl | back to summary |
|---|---|
| protected GLDrawableImpl(final GLDrawableFactory factory, final NativeSurface comp, final GLCapabilitiesImmutable requestedCapabilities, final boolean realized) | |
| associateContext | back to summary |
|---|---|
| protected void associateContext(final GLContext ctx, final boolean bound) Callback for special implementations, allowing
If
If
Being called by
| |
| contextMadeCurrent | back to summary |
|---|---|
| protected void contextMadeCurrent(final GLContext glc, final boolean current) Callback for special implementations, allowing GLContext to trigger GL related lifecycle:
If
If
Being called by
| |
| createHandle | back to summary |
|---|---|
| protected void createHandle() called with locked surface @ setRealized(true) or @ lockSurface(..) when surface changed
Must be paired w/ | |
| destroyHandle | back to summary |
|---|---|
| protected void destroyHandle() called with locked surface @ setRealized(false) or @ lockSurface(..) when surface changed
Must be paired w/ | |
| getChosenGLCapabilities | back to summary |
|---|---|
| public final GLCapabilitiesImmutable getChosenGLCapabilities() Implements com. Doc from com. Fetches the
This query only returns the chosen capabilities if On some platforms, the pixel format is not directly associated with the drawable; a best attempt is made to return a reasonable value in this case.
This object shall be directly associated to the attached
| |
| getDefaultDrawFramebuffer | back to summary |
|---|---|
| protected int getDefaultDrawFramebuffer() Callback for special implementations, allowing GLContext to fetch a custom default render framebuffer. Defaults to zero. | |
| getDefaultReadBuffer | back to summary |
|---|---|
| protected int getDefaultReadBuffer(final GL gl, final boolean hasDedicatedDrawableRead) Callback for special implementations, allowing GLContext to fetch a custom default read buffer of current framebuffer. | |
| getDefaultReadFramebuffer | back to summary |
|---|---|
| protected int getDefaultReadFramebuffer() Callback for special implementations, allowing GLContext to fetch a custom default read framebuffer. Defaults to zero. | |
| getFactory | back to summary |
|---|---|
| public final GLDrawableFactory getFactory() Implements com. Doc from com. Return the
| |
| getFactoryImpl | back to summary |
|---|---|
| public final GLDrawableFactoryImpl getFactoryImpl() | |
| getGLProfile | back to summary |
|---|---|
| public final GLProfile getGLProfile() Implements com. Doc from com. Fetches the
| |
| getHandle | back to summary |
|---|---|
| public long getHandle() Implements com. Doc from com. Returns the GL drawable handle,
guaranteed to be valid after
It is usually identical to the underlying windowing toolkit
On EGL it is represented by the EGLSurface.
| |
| getNativeSurface | back to summary |
|---|---|
| public NativeSurface getNativeSurface() Implements com. Doc from com. Returns the associated
Returns the underlying
| |
| getRequestedGLCapabilities | back to summary |
|---|---|
| public final GLCapabilitiesImmutable getRequestedGLCapabilities() Implements com. Doc from com. Fetches the
If
| |
| getSurfaceHeight | back to summary |
|---|---|
| public int getSurfaceHeight() Implements com. Doc from com. Returns the height of this
| |
| getSurfaceWidth | back to summary |
|---|---|
| public int getSurfaceWidth() Implements com. Doc from com. Returns the width of this
| |
| getThreadName | back to summary |
|---|---|
| protected static String getThreadName() | |
| isGLOriented | back to summary |
|---|---|
| public boolean isGLOriented() Implements com. Doc from com. Returns
Default impl. is
Currently only MS-Windows bitmap offscreen drawable uses a non OpenGL orientation and hence returns
| |
| isRealized | back to summary |
|---|---|
| public final boolean isRealized() Implements com. Doc from com. Returns
A drawable can be realized and unrealized via
| |
| lockSurface | back to summary |
|---|---|
| public final int lockSurface() throws GLException
If drawable is
In case the
| |
| setRealized | back to summary |
|---|---|
| public final void setRealized(final boolean realizedArg) Implements com. Doc from com. Indicates to GLDrawable implementations whether the
underlying
If realized, the
End users do not need to call this method; it is not necessary to
call
Developers implementing new OpenGL components for various window
toolkits need to call this method against GLDrawables obtained
from the GLDrawableFactory via the
With an argument of
This is important since NativeSurface's lockSurface()
ensures resolving the window/surface handles, and the drawable's GLCapabilities
might have changed.
Calling this method has no other effects. For example, if
| |
| setRealizedImpl | back to summary |
|---|---|
| protected abstract void setRealizedImpl() Platform specific realization of drawable | |
| swapBuffers | back to summary |
|---|---|
| public final void swapBuffers() throws GLException Implements com. Doc from com. Swaps the front and back buffers of this drawable. For
| |
| swapBuffersImpl | back to summary |
|---|---|
| protected abstract void swapBuffersImpl(boolean doubleBuffered) Platform and implementation depending surface swap. The surface is locked.
If
If
| |
| toHexString | back to summary |
|---|---|
| public static final String toHexString(final long hex) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Implements com. Doc from java. Returns a string representation of the object. | |
| unlockSurface | back to summary |
|---|---|
| public final void unlockSurface()
| |