28package com.jogamp.opengl.test.junit.jogl.demos.es2.awt;
30import java.applet.Applet;
31import java.util.ArrayList;
34import com.jogamp.opengl.GLAnimatorControl;
35import com.jogamp.opengl.awt.GLCanvas;
36import javax.swing.BoxLayout;
38import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2;
39import com.jogamp.opengl.util.Animator;
47@SuppressWarnings(
"serial")
49 private final List<GLAnimatorControl> animators =
new ArrayList<GLAnimatorControl>(2);
53 System.err.println(
"GearsApplet: init() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
54 new BoxLayout(
this, BoxLayout.X_AXIS);
62 System.err.println(
"GearsApplet: init() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
65 private GLCanvas createCanvas(
final int vsyncI) {
73 String currentThreadName() {
74 return Thread.currentThread().getName();
79 System.err.println(
"GearsApplet: start() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
82 control.setUpdateFPSFrames(60, System.err);
84 System.err.println(
"GearsApplet: start() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
89 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 848: Applet on OSX w/ CALayer and 2 or more GLCanvas may 'crash'.
An animator control interface, which implementation may drive a com.jogamp.opengl....
void setSize(int width, int height)
Requests a new width and height for this AWTGLAutoDrawable.