Top Methods
jogamp.opengl

public Interface ToolkitThreadingPlugin

Known Direct Implementers
jogamp.opengl.awt.AWTThreadingPlugin
Imports
com.jogamp.opengl.*

Method Summary

Modifier and TypeMethod and Description
public void
invokeOnOpenGLThread(boolean wait, Runnable r)

Executes the passed Runnable on the single thread used for all OpenGL work in this com.jogamp.opengl API implementation.

public boolean
isOpenGLThread()

Indicates whether the current thread is the thread on which this implementation of the com.jogamp.opengl APIs performs all of its OpenGL-related work.

public boolean
isToolkitThread()

Indicates whether the current thread is the designated toolkit thread, if such semantics exists.

Method Detail

invokeOnOpenGLThreadback to summary
public void invokeOnOpenGLThread(boolean wait, Runnable r) throws GLException

Executes the passed Runnable on the single thread used for all OpenGL work in this com.jogamp.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.

isOpenGLThreadback to summary
public boolean isOpenGLThread() throws GLException

Indicates whether the current thread is the thread on which this implementation of the com.jogamp.opengl APIs performs all of its OpenGL-related work. This method should only be called if the single-thread model is in effect.

isToolkitThreadback to summary
public boolean isToolkitThread() throws GLException

Indicates whether the current thread is the designated toolkit thread, if such semantics exists.