diff options
author | Sven Gothel <[email protected]> | 2012-02-28 01:03:13 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-02-28 01:03:13 +0100 |
commit | f1571df02103fb48bcd4b72acc3fa44066fe7d1a (patch) | |
tree | 8c637b33c2cbcf858a1b955902a080dd92868f01 /src/demos/tennis/Tennis.java | |
parent | 57f79783da6668d88b89a1479ddf42013aa5cc2e (diff) |
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).
Diffstat (limited to 'src/demos/tennis/Tennis.java')
-rw-r--r-- | src/demos/tennis/Tennis.java | 10 |
1 files changed, 5 insertions, 5 deletions
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());
|