isThreadGLCapable() always returns true.
GLAutoDrawable, GLAutoDrawable#getThreadingMode(), GLAutoDrawableDelegate, GLOffscreenAutoDrawable, GLOffscreenAutoDrawableImpl, GLPBufferImpl, com.jogamp.newt.opengl.GLWindow
| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected volatile GLContextImpl | |
| public static final boolean | |
| protected final Runnable | |
| protected final Runnable | |
| protected volatile GLDrawableImpl | |
| protected final FPSCounterImpl | |
| protected GLEventListenerState | |
| protected GLStateKeeper. | |
| protected final GLDrawableHelper | |
| protected final boolean | |
| protected boolean | |
| protected volatile boolean | |
| protected volatile boolean |
| Access | Constructor and Description |
|---|---|
| public | GLAutoDrawableBase(final GLDrawableImpl
upstream drawable, final GLContextImpl GLDrawableImpl instance,
may be null for lazy initializationupstream context, final boolean GLContextImpl instance,
may not have been made current (created) yet,
may not be associated w/ drawablepass ownsDevice)true if AbstractGraphicsDevice#close() shall be issued,
otherwise pass false. Closing the device is required in case
the drawable is created w/ it's own new instance, e.g. offscreen drawables,
and no further lifecycle handling is applied.
The |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addGLEventListener(final GLEventListener
The GLEventListener object to be inserted listener)Implements com. listener to the end of this drawable queue.
|
| public final void | addGLEventListener(final int
Position where the listener will be inserted.
Should be within (0 <= index && index <= size()).
An index value of -1 is interpreted as the end of the list, size(). index, final GLEventListener The GLEventListener object to be inserted listener)Implements com. listener at the given index of this drawable queue.
|
| public boolean | areAllGLEventListenerInitialized()
Implements com. GLEventListener are initialized, otherwise false.
|
| public final GLEventListenerState | clearPreservedGLState()
Implements com. GLEventListenerState from this GLStateKeeper, without destroying it.
|
| public final GLContext | createContext(final GLContext shareWith)
Implements com. |
| protected final void | |
| protected final void | |
| protected final GLEventListener | |
| public final void | |
| protected final void | defaultWindowDestroyNotifyOp()
Default implementation to handle destroy notifications from the windowing system. |
| protected final void | |
| protected final void | defaultWindowResizedOp(final int
Handling resize events from the windowing system. |
| protected final void | destroyAvoidAwareOfLocking()
Calls
|
| protected void | destroyImplInLock()
Default implementation to destroys the drawable and context of this GLAutoDrawable:
|
| public GLEventListener | disposeGLEventListener(final GLEventListener
The GLEventListener object to be disposed and removed if listener, final boolean remove is truepass remove)true to have the listener removed from this drawable queue, otherwise pass falseImplements com. listener via dispose(.
if it has been initialized and added to this queue.
|
| public void | flushGLRunnables()
Implements com. enqueued GLRunnable of this GLAutoDrawable
including notifying waiting executor.
|
| public final GLAnimatorControl | |
| public final boolean | getAutoSwapBufferMode()
Implements com. |
| public final GLCapabilitiesImmutable | getChosenGLCapabilities()
Implements com. GLCapabilitiesImmutable corresponding to the chosen
OpenGL capabilities (pixel format / visual / GLProfile) for this drawable.
|
| public final GLContext | getContext()
Implements com. |
| public final int | |
| public final GLDrawable | getDelegatedDrawable()
Implements com. GLDrawable instance,
otherwise return this instance.
|
| public final Thread | |
| public final long | getFPSStartTime()
Implements com. setUpdateFPSFrames(int, PrintStream).
|
| public final GL | getGL()
Implements com. GL pipeline object this GLAutoDrawable uses.
|
| public GLEventListener | getGLEventListener(final int
Position of the listener to be returned.
Should be within (0 <= index && index < size()).
An index value of -1 is interpreted as last listener, size()-1. index)Implements com. GLEventListener at the given index of this drawable queue.
|
| public int | getGLEventListenerCount()
Implements com. GLEventListener of this drawable queue.
|
| public boolean | getGLEventListenerInitState(final GLEventListener
the GLEventListener object to query it's initialized state. listener)Implements com. listener is initialized or not.
|
| public final GLProfile | getGLProfile()
Implements com. GLProfile for this drawable.
|
| public final long | getHandle()
Implements com. realization
and while it's surface is being locked.
|
| public final float | |
| public final long | |
| public final long | getLastFPSUpdateTime()
Implements com. setUpdateFPSFrames(int, PrintStream).
|
| public final NativeSurface | getNativeSurface()
Implements com. NativeSurface of this NativeSurfaceHolder.
|
| public final GLEventListenerState | getPreservedGLState()
Implements com. GLEventListenerState if preservation was performed,
otherwise null.
|
| 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 final float | |
| public final long | |
| public final int | |
| public final int | |
| public final boolean | invoke(final boolean
if wait, final GLRunnable true block until execution of glRunnable is finished, otherwise return immediately w/o waitingthe glRunnable)GLRunnable to execute within display()Implements com. GLRunnable,
which will be executed within the next display() call
after all registered GLEventListeners
display(GLAutoDrawable)
methods have been called.
|
| public boolean | invoke(final boolean
if wait, final List<GLRunnable> true block until execution of the last glRunnable is finished, otherwise return immediately w/o waitingthe glRunnables)GLRunnables to execute within display()Implements com. invoke(boolean, GLRunnable) functionality
allowing to inject a list of GLRunnables.
|
| public final void | invokeOnCurrentThread(final Runnable
the runnable)Runnable to execute on the new thread.
The runnable must exit, i.e. not loop forever.Invokes given |
| public final RunnableTask | Returns: RunnableTask instance with execution detailsthe tg, final boolean ThreadGroup for the new thread, maybe nullif waitUntilDone, final Runnable true, waits until runnable execution is completed, otherwise returns immediately.the runnable)Runnable to execute on the new thread.
The runnable must exit, i.e. not loop forever.Invokes given |
| public boolean | isGLOriented()
Implements com. true if the drawable is rendered in
OpenGL's coordinate system, origin at bottom left.
|
| public boolean | |
| public final boolean | isRealized()
Implements com. true if this drawable is realized, otherwise true.
|
| public final boolean | isThreadGLCapable()
Implements com. |
| protected final boolean | Returns: true if the GLEventListenerState is preserved successfully from this GLAutoDrawable,
otherwise false.Preserves the |
| public final boolean | preserveGLStateAtDestroy(final boolean value)
Implements com. true, the next GLAutoDrawable#destroy() operation will
preserve the GLEventListenerState.
|
| public final GLEventListener | removeGLEventListener(final GLEventListener
The GLEventListener object to be removed listener)Implements com. listener from this drawable queue.
|
| public final void | resetFPSCounter()
Implements com. |
| protected final boolean | Returns: true if the GLEventListenerState was previously preserved
and is moved successfully to this GLAutoDrawable,
otherwise false.Restores a previously |
| public final void | setAnimator(final GLAnimatorControl
null reference indicates no animator is using
this GLAutoDrawable,a valid reference indicates an animator is using this GLAutoDrawable.Implements com. com. implementation.
|
| public final void | setAutoSwapBufferMode(final boolean enable)
Implements com. |
| public final GLContext | setContext(final GLContext
the new context, maybe newCtx, final boolean null for dis-association.if destroyPrevCtx)true, destroy the previous context if existsImplements com. newtCtx, to this auto-drawable.
|
| public final void | setContextCreationFlags(final int
Additional context creation flags. flags)Implements com. |
| public final Thread | setExclusiveContextThread(final Thread
the exclusive thread to claim the context, or t)null for default operation.Implements com. GLContext to the given thread.
|
| public final GL | setGL(final GL gl)
Implements com. GL pipeline object this GLAutoDrawable uses.
|
| public void | setGLEventListenerInitState(final GLEventListener
the GLEventListener object to perform a state change. listener, final boolean if initialized)true, mark the listener initialized, otherwise uninitialized.Implements com. listener's initialized state.
|
| public final GLStateKeeper. | setGLStateKeeperListener(final GLStateKeeper.
the new lListener.Implements com. Listener, overriding the old one.
|
| public final void | setRealized(final boolean realized)
Implements com. surface has been created and can be drawn into.
|
| public final void | setSharedAutoDrawable(final GLAutoDrawable
The GLAutoDrawable, which OpenGL context shall be shared by this sharedAutoDrawable)GLAutoDrawable's GLContext.Implements com. GLAutoDrawable, which OpenGL context shall be shared by this GLAutoDrawable's GLContext.
|
| public final void | setSharedContext(final GLContext
The OpenGL context to be shared by this sharedContext)GLAutoDrawable's GLContext.Implements com. OpenGL context, which shall be shared by this GLAutoDrawable's GLContext.
|
| public final void | setUpdateFPSFrames(final int
Update interval in frames. frames, final PrintStream At every rendered frames interval the currentTime and fps values are updated. If the frames interval is <= 0, no update will be issued, ie the FPSCounter feature is turned off. You may choose DEFAULT_FRAMES_PER_INTERVAL.optional print stream where the fps values gets printed if not null at every frames interval out)Implements com. |
| public String | toString()
Overrides java. Implements com. |