28package com.jogamp.opengl.test.junit.jogl.demos.es2.awt;
30import com.jogamp.opengl.GLAnimatorControl;
31import com.jogamp.opengl.GLCapabilities;
32import com.jogamp.opengl.GLProfile;
33import com.jogamp.opengl.awt.GLCanvas;
34import javax.swing.JApplet;
35import javax.swing.JRootPane;
36import javax.swing.JScrollPane;
37import javax.swing.JSplitPane;
39import com.jogamp.opengl.test.junit.jogl.demos.es2.GearsES2;
40import com.jogamp.opengl.util.Animator;
52@SuppressWarnings(
"serial")
55 boolean added =
false;
59 System.err.println(
"GearsApplet: init() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
66 animator.
add(glCanvas1);
71 final JSplitPane verticalSplitPane =
new JSplitPane(JSplitPane.VERTICAL_SPLIT,
72 true,
new JScrollPane(), glCanvas1);
73 verticalSplitPane.setResizeWeight(0.5);
74 final JSplitPane horizontalSplitPane =
new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
75 true,
new JScrollPane(), verticalSplitPane);
76 horizontalSplitPane.setResizeWeight(0.5);
77 final JRootPane intermediateRootPane =
new JRootPane();
78 intermediateRootPane.setContentPane(horizontalSplitPane);
79 intermediateRootPane.setSize(640, 480);
80 this.add(intermediateRootPane);
81 System.err.println(
"GearsApplet: init() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
84 String currentThreadName() {
85 return Thread.currentThread().getName();
90 System.err.println(
"GearsApplet: start() - begin [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
93 System.err.println(
"GearsApplet: start() - end [visible "+isVisible()+
", displayable "+isDisplayable()+
"] - "+currentThreadName());
98 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 - Swing JApplet w/ 2 JRootPanes 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.