From 2e32df6eb0181d50f002e0dfe055572b60088428 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 7 Jan 2006 23:47:49 +0000 Subject: Reorganized and added code in TextureIO and Texture classes to support cubemap generation as well as complete replacement of the texture's image, not just a sub-image. Added setTexParameteri to provide control over things like the GL_TEXTURE_WRAP_ modes. Ported JOGL demos to use new TextureIO class instead of TGAImage and ImageIO directly. Fixed longstanding bug in ExaminerViewer's setting up of inverse rotation causing errors in loading of uffizi cubemap. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@163 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java') diff --git a/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java b/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java index 6fe2369..6a7d116 100644 --- a/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java +++ b/src/demos/proceduralTexturePhysics/ProceduralTexturePhysics.java @@ -94,6 +94,7 @@ public class ProceduralTexturePhysics extends Demo { // public void shutdownDemo() { + viewer.detach(); ManipManager.getManipManager().unregisterWindow(drawable); drawable.removeGLEventListener(this); super.shutdownDemo(); @@ -124,7 +125,8 @@ public class ProceduralTexturePhysics extends Demo { water.initialize("demos/data/images/nvfixed.tga", "demos/data/images/nvspin.tga", "demos/data/images/droplet.tga", - "demos/data/cubemaps/CloudyHills_{0}.tga", + "demos/data/cubemaps/CloudyHills_", + "tga", drawable); GL gl = drawable.getGL(); -- cgit v1.2.3