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/data/images/test_texture_dxt3_mipmap.dds | Bin 0 -> 87536 bytes src/demos/texture/TestTexture.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100755 src/demos/data/images/test_texture_dxt3_mipmap.dds (limited to 'src/demos') diff --git a/src/demos/data/images/test_texture_dxt3_mipmap.dds b/src/demos/data/images/test_texture_dxt3_mipmap.dds new file mode 100755 index 0000000..c58a396 Binary files /dev/null and b/src/demos/data/images/test_texture_dxt3_mipmap.dds differ 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