summaryrefslogtreecommitdiffstats
path: root/src/demos/infiniteShadowVolumes
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-02-27 21:53:30 +0000
committerKenneth Russel <[email protected]>2005-02-27 21:53:30 +0000
commitf2bb27ee90e8b7d419cff71c4a11d2df6e1d47af (patch)
tree7de3533594595bca386006ee691b7cf5154ec42c /src/demos/infiniteShadowVolumes
parentd6ed054c6e6a7ff0e071ff8480b2ccd8e6b73518 (diff)
Fixed problem in event-driven InfiniteShadowVolumes demo where
animation wasn't occurring git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@61 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/infiniteShadowVolumes')
-rw-r--r--src/demos/infiniteShadowVolumes/InfiniteShadowVolumes.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/demos/infiniteShadowVolumes/InfiniteShadowVolumes.java b/src/demos/infiniteShadowVolumes/InfiniteShadowVolumes.java
index 1f9bdca..f091c11 100644
--- a/src/demos/infiniteShadowVolumes/InfiniteShadowVolumes.java
+++ b/src/demos/infiniteShadowVolumes/InfiniteShadowVolumes.java
@@ -153,6 +153,7 @@ public class InfiniteShadowVolumes {
private boolean enableDepthClampNV;
private boolean toggleDepthClampNV;
+ private boolean animateContinually;
private boolean animateForward;
private boolean animateBackward;
private boolean hideCurrentModel;
@@ -537,6 +538,11 @@ public class InfiniteShadowVolumes {
gl.glLineWidth(1);
gl.glPopMatrix();
}
+
+ if (b[' ']) {
+ // Animating continually. Schedule another repaint soon.
+ canvas.repaint();
+ }
}
// Unused routines