public class GLJPanelViewerExample extends Object
GLJPanelViewer
, lightweight version
of the JOGL viewer which allows the user to mix ordinary Java 2D code with JOGL
3D graphics.
To run the demo: you should see an icosahedron over a light green background. Rotate the icosahedron so that it continues to spin. You should then see two strings (from Java2D code) displayed, they move diagonally across the screen as the object rotates. One (from the preRender() method) goes behind the icosahedron, the other (from the postRender() method) goes in front of the icosahedron.
Constructor and Description |
---|
GLJPanelViewerExample() |
public static void main(String[] args)