summaryrefslogtreecommitdiffstats
path: root/src/demos/dualDepthPeeling/Model.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-18 18:37:41 +0100
committerSven Gothel <[email protected]>2012-02-18 18:37:41 +0100
commit697d631bc0333b92689972ff3e621e3549fb6c80 (patch)
tree842ce0ed8b2e17c2d187566f7df2679fbb190058 /src/demos/dualDepthPeeling/Model.java
parent390ef63a8da4c3e89b2f61526b641b1b2b82f42d (diff)
JOGL'fy dualDepthPeeling demo (Using JOGL ShaderState/Code/Program)
Diffstat (limited to 'src/demos/dualDepthPeeling/Model.java')
-rw-r--r--src/demos/dualDepthPeeling/Model.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/demos/dualDepthPeeling/Model.java b/src/demos/dualDepthPeeling/Model.java
index 02f241c..3502879 100644
--- a/src/demos/dualDepthPeeling/Model.java
+++ b/src/demos/dualDepthPeeling/Model.java
@@ -27,6 +27,8 @@ import java.nio.IntBuffer;
import java.util.HashMap;
import java.util.Vector;
+import com.jogamp.common.util.IOUtil;
+
public class Model {
//
@@ -94,7 +96,7 @@ public class Model {
//
//////////////////////////////////////////////////////////////
public boolean loadModelFromFile( String file ) {
- URL fileURL = getClass().getClassLoader().getResource(File.separator + file);
+ URL fileURL = IOUtil.getResource(Model.class, file);
if ( fileURL != null )
{
BufferedReader input = null;