28package com.jogamp.opengl.test.junit.jogl.demos.es2.awt;
30import java.applet.Applet;
31import java.awt.GridLayout;
33import com.jogamp.opengl.GLAnimatorControl;
34import com.jogamp.opengl.awt.GLCanvas;
36import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2;
37import com.jogamp.opengl.util.Animator;
48@SuppressWarnings(
"serial")
51 boolean added =
false;
55 System.err.println(
"GearsApplet: init() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
57 this.setLayout(
new GridLayout(1, 2));
61 System.err.println(
"GearsApplet: init() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
72 String currentThreadName() {
73 return Thread.currentThread().getName();
78 System.err.println(
"GearsApplet: start() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
81 System.err.println(
"GearsApplet: start() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
86 System.err.println(
"GearsApplet: stop() - [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
A heavyweight AWT component which provides OpenGL rendering support.
void addGLEventListener(final GLEventListener listener)
Adds the given listener to the end of this drawable queue.
Bug 816: OSX CALayer Positioning Bug.
void setUpdateFPSFrames(int frames, PrintStream out)
An animator control interface, which implementation may drive a com.jogamp.opengl....
boolean start()
Starts this animator, if not running.
boolean stop()
Stops this animator.
void add(GLAutoDrawable drawable)
Adds a drawable to this animator's list of rendering drawables.
void setSize(int width, int height)
Requests a new width and height for this AWTGLAutoDrawable.