diff options
author | Sven Gothel <[email protected]> | 2009-07-31 11:55:45 -0700 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2009-07-31 11:55:45 -0700 |
commit | fb20e6606b0d1c1846547dd728cb77bafc671baf (patch) | |
tree | cba03c22350430e54ae9149e5bb3343d15122793 /src | |
parent | 56cdd9e61e28fb7fc542163d4009f1de3b397904 (diff) |
Fix windows start scripts (CVM/J2SE)
Diffstat (limited to 'src')
-rwxr-xr-x | src/demos/es1/RedSquare.java | 5 | ||||
-rwxr-xr-x | src/demos/es2/RedSquare.java | 16 |
2 files changed, 17 insertions, 4 deletions
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java index 8931b6c..17dd69e 100755 --- a/src/demos/es1/RedSquare.java +++ b/src/demos/es1/RedSquare.java @@ -168,6 +168,8 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo gl.setSwapInterval(swapInterval); } + glu = GLU.createGLU(); + System.err.println(glp+" Entering initialization"); System.err.println(glp+" GL Profile: "+gl.getGLProfile()); System.err.println(glp+" GL:" + gl); @@ -175,8 +177,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo System.err.println(glp+" GL_EXTENSIONS:"); System.err.println(glp+" " + gl.glGetString(gl.GL_EXTENSIONS)); System.err.println(glp+" swapInterval: " + swapInterval + " (GL: "+gl.getSwapInterval()+")"); - - glu = GLU.createGLU(); + System.err.println(glp+" GLU: " + glu); // Allocate vertex arrays colors = BufferUtil.newFloatBuffer(16); diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java index 5c74a4e..8b23ddc 100755 --- a/src/demos/es2/RedSquare.java +++ b/src/demos/es2/RedSquare.java @@ -183,6 +183,8 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo gl.setSwapInterval(swapInterval); } + glu = GLU.createGLU(); + System.err.println(glp+" Entering initialization"); System.err.println(glp+" GL Profile: "+gl.getGLProfile()); System.err.println(glp+" GL:" + gl); @@ -190,8 +192,18 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo System.err.println(glp+" GL_EXTENSIONS:"); System.err.println(glp+" " + gl.glGetString(gl.GL_EXTENSIONS)); System.err.println(glp+" swapInterval: " + swapInterval + " (GL: "+gl.getSwapInterval()+")"); - - glu = GLU.createGLU(); + System.err.println(glp+" GLU: " + glu); + + /*** + // Debug .. + DebugGL2ES2 gldbg = new DebugGL2ES2(gl); + gl.getContext().setGL(gldbg); + gl = gldbg; + + // Trace .. + TraceGL2ES2 gltrace = new TraceGL2ES2(gl, System.err); + gl.getContext().setGL(gltrace); + gl = gltrace; **/ pmvMatrix = new PMVMatrix(); |