From fb20e6606b0d1c1846547dd728cb77bafc671baf Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Fri, 31 Jul 2009 11:55:45 -0700 Subject: Fix windows start scripts (CVM/J2SE) --- src/demos/es1/RedSquare.java | 5 +++-- src/demos/es2/RedSquare.java | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'src') 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(); -- cgit v1.2.3