summaryrefslogtreecommitdiffstats
path: root/src/demos/gears
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-04-24 00:29:32 +0000
committerKenneth Russel <[email protected]>2005-04-24 00:29:32 +0000
commit25642283fd65b5a22becd588b2564d162e85871a (patch)
tree6e63123d489cbbbf80e4f9089c3d82536c6f196c /src/demos/gears
parent1f945d8171c58fdec9252da99cbb913fc48f6de6 (diff)
Added call to GL.setSwapInterval(1) to make demo animate smoothly on
all platforms git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@65 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/gears')
-rw-r--r--src/demos/gears/Gears.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/demos/gears/Gears.java b/src/demos/gears/Gears.java
index 17f1330..775dcf0 100644
--- a/src/demos/gears/Gears.java
+++ b/src/demos/gears/Gears.java
@@ -55,6 +55,8 @@ public class Gears {
GL gl = drawable.getGL();
System.err.println("INIT GL IS: " + gl.getClass().getName());
+ gl.setSwapInterval(1);
+
float pos[] = { 5.0f, 5.0f, 10.0f, 0.0f };
float red[] = { 0.8f, 0.1f, 0.0f, 1.0f };
float green[] = { 0.0f, 0.8f, 0.2f, 1.0f };