From e99aeb5f40422070161865bb1d37b9158e3de63f Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 5 Aug 2005 06:55:06 +0000 Subject: Refactored Gears, VertexProgRefract and Water demos to be more modular. Started rewriting other demos like JGears and JRefract in terms of others to share more code. Added Water demo to JRefract demo. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JSR-231@106 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/proceduralTexturePhysics/Water.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/demos/proceduralTexturePhysics/Water.java') diff --git a/src/demos/proceduralTexturePhysics/Water.java b/src/demos/proceduralTexturePhysics/Water.java index f15fe37..682232b 100644 --- a/src/demos/proceduralTexturePhysics/Water.java +++ b/src/demos/proceduralTexturePhysics/Water.java @@ -208,6 +208,14 @@ public class Water { pbuffer.addGLEventListener(new Listener()); } + public void destroy() { + if (pbuffer != null) { + pbuffer.destroy(); + pbuffer = null; + } + reset = true; + } + public void tick() { pbuffer.display(); } -- cgit v1.2.3