41package com.jogamp.opengl;
45import com.jogamp.nativewindow.NativeSurface;
47import com.jogamp.common.util.locks.RecursiveLock;
49import jogamp.opengl.Debug;
483 public boolean invoke(
boolean wait, List<GLRunnable> glRunnables)
throws IllegalStateException;
Abstraction for an OpenGL rendering context.
A generic exception for OpenGL errors used throughout the binding as a substitute for RuntimeExceptio...
An animator control interface, which implementation may drive a com.jogamp.opengl....
A higher-level abstraction than GLDrawable which supplies an event based mechanism (GLEventListener) ...
GLEventListener getGLEventListener(int index)
Returns the GLEventListener at the given index of this drawable queue.
GLContext setContext(GLContext newCtx, boolean destroyPrevCtx)
Associate the new context, newtCtx, to this auto-drawable.
void setContextCreationFlags(int flags)
boolean invoke(boolean wait, GLRunnable glRunnable)
Enqueues a one-shot GLRunnable, which will be executed within the next display() call after all regis...
boolean invoke(boolean wait, List< GLRunnable > glRunnables)
Extends invoke(boolean, GLRunnable) functionality allowing to inject a list of GLRunnables.
boolean isThreadGLCapable()
Indicates whether the current thread is capable of performing OpenGL-related work.
GLAnimatorControl getAnimator()
GLEventListener disposeGLEventListener(GLEventListener listener, boolean remove)
Disposes the given listener via dispose(..) if it has been initialized and added to this queue.
static final boolean SCREEN_CHANGE_ACTION_ENABLED
Flag reflecting whether the GLDrawable reconfiguration will be issued in case a screen device change ...
void addGLEventListener(int index, GLEventListener listener)
Adds the given listener at the given index of this drawable queue.
GL getGL()
Returns the GL pipeline object this GLAutoDrawable uses.
GLContext createContext(GLContext shareWith)
Creates a new context for drawing to this drawable that will optionally share buffer objects,...
Thread setExclusiveContextThread(Thread t)
Dedicates this instance's GLContext to the given thread.
void setGLEventListenerInitState(GLEventListener listener, boolean initialized)
Sets the given listener's initialized state.
Object getUpstreamWidget()
Method may return the upstream UI toolkit object holding this GLAutoDrawable instance,...
RecursiveLock getUpstreamLock()
Returns the recursive lock object of the upstream widget to synchronize multithreaded access on top o...
boolean getAutoSwapBufferMode()
Indicates whether automatic buffer swapping is enabled for this drawable.
void addGLEventListener(GLEventListener listener)
Adds the given listener to the end of this drawable queue.
abstract void setAnimator(GLAnimatorControl animatorControl)
Registers the usage of an animator, an com.jogamp.opengl.GLAnimatorControl implementation.
int getGLEventListenerCount()
Returns the number of GLEventListener of this drawable queue.
boolean areAllGLEventListenerInitialized()
Returns true if all added GLEventListener are initialized, otherwise false.
GLEventListener removeGLEventListener(GLEventListener listener)
Removes the given listener from this drawable queue.
void destroy()
Destroys all resources associated with this GLAutoDrawable, inclusive the GLContext.
GLContext getContext()
Returns the context associated with this drawable.
void flushGLRunnables()
Flushes all enqueued GLRunnable of this GLAutoDrawable including notifying waiting executor.
int getContextCreationFlags()
GL setGL(GL gl)
Sets the GL pipeline object this GLAutoDrawable uses.
boolean getGLEventListenerInitState(GLEventListener listener)
Retrieves whether the given listener is initialized or not.
Thread getExclusiveContextThread()
void setAutoSwapBufferMode(boolean enable)
Enables or disables automatic buffer swapping for this drawable.
GLDrawable getDelegatedDrawable()
If the implementation uses delegation, return the delegated GLDrawable instance, otherwise return thi...
An abstraction for an OpenGL rendering target.
Declares events which client code can use to manage OpenGL rendering into a GLAutoDrawable.