28package com.jogamp.opengl.test.junit.jogl.demos.es2.awt;
30import java.applet.Applet;
31import java.awt.BorderLayout;
33import com.jogamp.opengl.GLAnimatorControl;
34import com.jogamp.opengl.GLCapabilities;
35import com.jogamp.opengl.GLProfile;
36import com.jogamp.opengl.awt.GLCanvas;
37import javax.swing.JRootPane;
38import javax.swing.JScrollPane;
39import javax.swing.JSplitPane;
41import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2;
42import com.jogamp.opengl.util.Animator;
54@SuppressWarnings(
"serial")
57 boolean added =
false;
61 System.err.println(
"GearsApplet: init() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
68 animator.
add(glCanvas1);
69 setLayout(
new BorderLayout());
73 final JSplitPane verticalSplitPane =
new JSplitPane(JSplitPane.VERTICAL_SPLIT,
74 true,
new JScrollPane(), glCanvas1);
75 verticalSplitPane.setResizeWeight(0.5);
76 final JSplitPane horizontalSplitPane =
new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
77 true,
new JScrollPane(), verticalSplitPane);
78 horizontalSplitPane.setResizeWeight(0.5);
79 final JRootPane intermediateRootPane =
new JRootPane();
80 intermediateRootPane.setContentPane(horizontalSplitPane);
81 add(intermediateRootPane, BorderLayout.CENTER);
82 System.err.println(
"GearsApplet: init() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
85 String currentThreadName() {
86 return Thread.currentThread().getName();
91 System.err.println(
"GearsApplet: start() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
94 System.err.println(
"GearsApplet: start() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
99 System.err.println(
"GearsApplet: stop() - [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
Specifies a set of OpenGL capabilities.
Specifies the the OpenGL profile.
static GLProfile getDefault(final AbstractGraphicsDevice device)
Returns a default GLProfile object, reflecting the best for the running platform.
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 - AWT Applet w/ 1 JRootPane and 2 JSplitPanes.
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.