Top Constructors Methods
jogamp.opengl.awt

public Class AWTThreadingPlugin

extends Object
implements ToolkitThreadingPlugin
Class Inheritance
All Implemented Interfaces
jogamp.opengl.ToolkitThreadingPlugin
Imports
java.awt.EventQueue, com.jogamp.opengl.GLException, com.jogamp.common.util.awt.AWTEDTExecutor, jogamp.opengl.GLWorkerThread, .ThreadingImpl, .ToolkitThreadingPlugin

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Implements jogamp.opengl.ToolkitThreadingPlugin.invokeOnOpenGLThread.

Executes the passed Runnable on the single thread used for all OpenGL work in this com.jogamp.opengl API implementation.
public final boolean
isOpenGLThread()

Implements jogamp.opengl.ToolkitThreadingPlugin.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 final boolean
isToolkitThread()

Implements jogamp.opengl.ToolkitThreadingPlugin.isToolkitThread.

Indicates whether the current thread is the designated toolkit thread, if such semantics exists.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AWTThreadingPluginback to summary
public AWTThreadingPlugin()

Method Detail

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

Implements jogamp.opengl.ToolkitThreadingPlugin.invokeOnOpenGLThread.

Doc from jogamp.opengl.ToolkitThreadingPlugin.invokeOnOpenGLThread.

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.

Annotations
@Override
isOpenGLThreadback to summary
public final boolean isOpenGLThread() throws GLException

Implements jogamp.opengl.ToolkitThreadingPlugin.isOpenGLThread.

Doc from jogamp.opengl.ToolkitThreadingPlugin.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. This method should only be called if the single-thread model is in effect.

Annotations
@Override
isToolkitThreadback to summary
public final boolean isToolkitThread() throws GLException

Implements jogamp.opengl.ToolkitThreadingPlugin.isToolkitThread.

Doc from jogamp.opengl.ToolkitThreadingPlugin.isToolkitThread.

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

Annotations
@Override