From f2bb27ee90e8b7d419cff71c4a11d2df6e1d47af Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 27 Feb 2005 21:53:30 +0000 Subject: 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 --- src/demos/infiniteShadowVolumes/InfiniteShadowVolumes.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/demos') 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 -- cgit v1.2.3