summaryrefslogtreecommitdiffstats
path: root/src/demos/es1/angeles/Main.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-08-29 08:59:54 +0000
committerSven Gothel <[email protected]>2008-08-29 08:59:54 +0000
commitb6600156175b22e94fbeb7a84682cce105050863 (patch)
tree8d1a8ae317380c4c35fece3e5011efda2a48a355 /src/demos/es1/angeles/Main.java
parentbf8817969ca69fbeeb9b551e9eab92b48ca2bf44 (diff)
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
Diffstat (limited to 'src/demos/es1/angeles/Main.java')
-rwxr-xr-xsrc/demos/es1/angeles/Main.java15
1 files changed, 12 insertions, 3 deletions
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);