From b6600156175b22e94fbeb7a84682cce105050863 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 29 Aug 2008 08:59:54 +0000 Subject: Angeles VBO interleave test, 1 VBO per object; PerfTest Texture; misc changes git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@282 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4 --- src/demos/es1/angeles/Main.java | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/demos/es1/angeles/Main.java') diff --git a/src/demos/es1/angeles/Main.java b/src/demos/es1/angeles/Main.java index 7e5ed80..1c9ea23 100755 --- a/src/demos/es1/angeles/Main.java +++ b/src/demos/es1/angeles/Main.java @@ -67,9 +67,15 @@ public class Main implements MouseListener { AngelesES1 angel = new AngelesES1( 0 == (type&USE_NOBLEND) ); window.addGLEventListener(angel); } else { - System.out.println("Using: AngelesGL .. "); - AngelesGL angel = new AngelesGL( 0 == (type&USE_NOBLEND) ); - window.addGLEventListener(angel); + if(0!=(type&USE_INTERLEAVE)) { + System.out.println("Using: AngelesGLil .. "); + AngelesGLil angel = new AngelesGLil( 0 == (type&USE_NOBLEND) ); + window.addGLEventListener(angel); + } else { + System.out.println("Using: AngelesGL .. "); + AngelesGL angel = new AngelesGL( 0 == (type&USE_NOBLEND) ); + window.addGLEventListener(angel); + } } while (!quit && window.getDuration() < 215000) { @@ -89,6 +95,7 @@ public class Main implements MouseListener { public static int USE_AWT = 1 << 0; public static int USE_ANGELESF = 1 << 1; public static int USE_NOBLEND = 1 << 2; + public static int USE_INTERLEAVE= 1 << 3; public static void main(String[] args) { int type = USE_NEWT ; @@ -99,6 +106,8 @@ public class Main implements MouseListener { type |= USE_ANGELESF; } else if(args[i].equals("-noblend")) { type |= USE_NOBLEND; + } else if(args[i].equals("-interleave")) { + type |= USE_INTERLEAVE; } } new Main().run(type); -- cgit v1.2.3