diff options
author | Kenneth Russel <[email protected]> | 2005-12-01 07:33:01 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-12-01 07:33:01 +0000 |
commit | e936a40c752831a64c2ad504b74864da6e582deb (patch) | |
tree | e246d91a7a5cc562d7cb274543e109757945e28c | |
parent | 76a3d8bb37af9e0386a481eb05a6ccfdb2587a49 (diff) |
Removed dead code
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@152 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
-rwxr-xr-x | src/demos/applets/GearsApplet.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/demos/applets/GearsApplet.java b/src/demos/applets/GearsApplet.java new file mode 100755 index 0000000..a71c9a7 --- /dev/null +++ b/src/demos/applets/GearsApplet.java @@ -0,0 +1,34 @@ +package demos.applets; + +import java.applet.*; +import java.awt.*; +import java.io.*; + +import javax.media.opengl.*; +import com.sun.opengl.utils.*; +import demos.gears.Gears; + +/** Shows how to deploy an applet using JOGL. This demo must be + referenced from a web page via an <applet> tag. */ + +public class GearsApplet extends Applet { + private Animator animator; + + public void init() { + setLayout(new BorderLayout()); + GLCanvas canvas = new GLCanvas(); + canvas.addGLEventListener(new Gears()); + canvas.setSize(getSize()); + add(canvas, BorderLayout.CENTER); + animator = new FPSAnimator(canvas, 60); + } + + public void start() { + animator.start(); + } + + public void stop() { + // FIXME: do I need to do anything else here? + animator.stop(); + } +} |