com.jogamp.opengl.impl
Interface ThreadingPlugin
- All Known Implementing Classes:
- AWTThreadingPlugin
public interface ThreadingPlugin
Method Summary |
void |
invokeOnOpenGLThread(Runnable r)
Executes the passed Runnable on the single thread used for all
OpenGL work in this javax.media.opengl API implementation. |
boolean |
isOpenGLThread()
Indicates whether the current thread is the single thread on
which this implementation of the javax.media.opengl APIs
performs all of its OpenGL-related work. |
isOpenGLThread
boolean isOpenGLThread()
throws GLException
- Indicates whether the current thread is the single thread on
which this implementation of the javax.media.opengl APIs
performs all of its OpenGL-related work. This method should only
be called if the single-thread model is in effect.
- Throws:
GLException
invokeOnOpenGLThread
void invokeOnOpenGLThread(Runnable r)
throws GLException
- Executes the passed Runnable on the single thread used for all
OpenGL work in this javax.media.opengl API implementation. It is
not specified exactly which thread is used for this
purpose. This method should only be called if the single-thread
model is in use and if the current thread is not the OpenGL
thread (i.e., if
isOpenGLThread()
returns
false). It is up to the end user to check to see whether the
current thread is the OpenGL thread and either execute the
Runnable directly or perform the work inside it.
- Throws:
GLException
Copyright 2010 JogAmp Community.