summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/demos/es1/RedSquare.java5
-rwxr-xr-xsrc/demos/es2/RedSquare.java16
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();