de.jreality.tutorial.viewer
Class GLJPanelViewerExample
java.lang.Object
de.jreality.tutorial.viewer.GLJPanelViewerExample
public class GLJPanelViewerExample
- extends java.lang.Object
A simple class showing how to use a 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.
- Author:
- Charles Gunn
Method Summary |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GLJPanelViewerExample
public GLJPanelViewerExample()
main
public static void main(java.lang.String[] args)