javax.media.opengl
public interface GLAnimatorControl extends FPSCounter
GLAutoDrawable
animation.DEFAULT_FRAMES_PER_INTERVAL
Modifier and Type | Method and Description |
---|---|
Thread |
getThread() |
boolean |
isAnimating()
Indicates whether this animator is running and animating,
the latter is true if it has GLAutoDrawable s to render and is not paused. |
boolean |
isPaused()
Indicates whether this animator is running and paused.
|
boolean |
isStarted()
Indicates whether this animator is running, ie.
|
boolean |
pause()
Pauses this animator.
|
void |
remove(GLAutoDrawable drawable)
Removes a drawable from the animator's list of rendering drawables.
This method should get called in case a drawable becomes invalid, and will not be recovered. This allows the animator thread to become idle in case the last drawable has reached it's end of life. |
boolean |
resume()
Resumes animation if paused.
|
boolean |
start()
Starts this animator, if not running.
|
boolean |
stop()
Stops this animator.
|
getFPSStartTime, getLastFPS, getLastFPSPeriod, getLastFPSUpdateTime, getTotalFPS, getTotalFPSDuration, getTotalFPSFrames, getUpdateFPSFrames, resetFPSCounter, setUpdateFPSFrames
boolean isStarted()
boolean isAnimating()
GLAutoDrawable
s to render and is not paused.boolean isPaused()
Thread getThread()
boolean start()
In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
If started, all counters (time, frames, ..) are reset to zero.
stop()
,
isAnimating()
,
getThread()
boolean stop()
In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
start()
,
isAnimating()
,
getThread()
boolean pause()
In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
resume()
,
isAnimating()
boolean resume()
In most situations this method blocks until completion, except when called from the animation thread itself or in some cases from an implementation-internal thread like the AWT event queue thread.
If resumed, all counters (time, frames, ..) are reset to zero.
pause()
,
isAnimating()
void remove(GLAutoDrawable drawable)
drawable
- the to be removed drawableCopyright 2010 JogAmp Community.