diff options
author | Kenneth Russel <[email protected]> | 2005-08-05 06:55:06 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-08-05 06:55:06 +0000 |
commit | e99aeb5f40422070161865bb1d37b9158e3de63f (patch) | |
tree | b43736bb329fe6fe3f041b76b69622be266bb872 /src/demos/proceduralTexturePhysics/Water.java | |
parent | c907a7067c06917cb19b809084e3ecd03e74586f (diff) |
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
Diffstat (limited to 'src/demos/proceduralTexturePhysics/Water.java')
-rw-r--r-- | src/demos/proceduralTexturePhysics/Water.java | 8 |
1 files changed, 8 insertions, 0 deletions
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(); } |