From ecb75532f0c488031d49935d1a7116be07544270 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 7 Jan 2006 01:13:46 +0000 Subject: Fixed mipmap handling in TextureIO and associated classes. Top-level mipmap argument is now a boolean indicating whether mipmaps should be generated or used if available. Added mipmap argument to newTexture APIs. Added support for reading mipmaps from files which support them, in particular DDS files. Updated TestTexture demo to generate mipmaps. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@162 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/texture/TestTexture.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/demos/texture') diff --git a/src/demos/texture/TestTexture.java b/src/demos/texture/TestTexture.java index 8ca89e2..cd71a3a 100755 --- a/src/demos/texture/TestTexture.java +++ b/src/demos/texture/TestTexture.java @@ -165,7 +165,7 @@ public class TestTexture implements GLEventListener { try { System.err.println("Loading texture..."); - texture = TextureIO.newTexture(file); + texture = TextureIO.newTexture(file, true); } catch (IOException e) { e.printStackTrace(); ByteArrayOutputStream bos = new ByteArrayOutputStream(); -- cgit v1.2.3