From f1571df02103fb48bcd4b72acc3fa44066fe7d1a Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 28 Feb 2012 01:03:13 +0100 Subject: Extract demos 'dualDepthPeeling' and 'tennis' w/ code and data. Skip www/*.7z from archive. Extracting the demos reduces the footprint of general demo data (especially for dualDepthPeeling's dragon.obj) and also allows to run the demo as standalone (tennis). --- src/demos/tennis/Tennis.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/demos/tennis') diff --git a/src/demos/tennis/Tennis.java b/src/demos/tennis/Tennis.java index 2460f90..1eb1b6a 100644 --- a/src/demos/tennis/Tennis.java +++ b/src/demos/tennis/Tennis.java @@ -159,19 +159,19 @@ public class Tennis implements GLEventListener { //Load textures try { System.err.println("Loading texture..."); - texture[0] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/images/TennisTop.png"), + texture[0] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/tennis/TennisTop.png"), false, TextureIO.PNG); - texture[1] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/images/TennisBottom.png"), + texture[1] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/tennis/TennisBottom.png"), false, TextureIO.PNG); - texture[2] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/images/TennisMyDesk.png"), + texture[2] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/tennis/TennisMyDesk.png"), false, TextureIO.PNG); - texture[3] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/images/TennisEnDesk.png"), + texture[3] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/tennis/TennisEnDesk.png"), false, TextureIO.PNG); - texture[4] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/images/Stars.png"), + texture[4] = TextureIO.newTexture(getClass().getClassLoader().getResourceAsStream("demos/data/tennis/Stars.png"), false, TextureIO.PNG); System.err.println("Texture0 estimated memory size = " + texture[0].getEstimatedMemorySize()); -- cgit v1.2.3