summaryrefslogtreecommitdiffstats
path: root/src/demos/es2/RedSquare.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-08-12 12:47:08 +0000
committerSven Gothel <[email protected]>2008-08-12 12:47:08 +0000
commit95d35b7199b49f111ccec5c37bb6a1f305693f86 (patch)
tree1ae2626e1c5be0f6a7b05a41b7ec0af7526fdaa1 /src/demos/es2/RedSquare.java
parent5cf9dae46b82e6079a6ee4fd44df3db195e4eff9 (diff)
Ragdoll: drop gnu/trove; All: Enabling perf logging
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/branches/JOGL_2_SANDBOX@270 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/es2/RedSquare.java')
-rwxr-xr-xsrc/demos/es2/RedSquare.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 6b53f04..9e74c4f 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -147,7 +147,7 @@ public class RedSquare implements MouseListener, GLEventListener {
vertShader.put(tmpI);
vertShader.flip();
- gl.glShaderBinaryOrSource(vertShader, 0, null, vertShaderSource);
+ gl.glShaderSource(vertShader, vertShaderSource);
gl.glCompileShader(vertShader.get(0));
if ( ! gl.glIsShaderStatusValid(vertShader.get(0), gl.GL_COMPILE_STATUS) ) {
System.err.println("Failed to compile vertex shader: id "+vertShader.get(0)+
@@ -160,7 +160,7 @@ public class RedSquare implements MouseListener, GLEventListener {
fragShader.put(tmpI);
fragShader.flip();
- gl.glShaderBinaryOrSource(fragShader, 0, null, fragShaderSource);
+ gl.glShaderSource(fragShader, fragShaderSource);
gl.glCompileShader(fragShader.get(0));
@@ -196,7 +196,7 @@ public class RedSquare implements MouseListener, GLEventListener {
shaderPMVMatrix = gl.glGetUniformLocation(shaderProgram, "mgl_PMVMatrix");
if(0<=shaderPMVMatrix) {
- gl.glUniformMatrix4fv(shaderPMVMatrix, 2, false, pmvMatrix.glGetPMVMatrixf());
+ gl.glUniformMatrix4fv(shaderPMVMatrix, 2, false, pmvMatrix.glGetPMvMatrixf());
} else {
System.err.println("could not get uniform mgl_PMVMatrix: "+shaderPMVMatrix);
return;
@@ -262,7 +262,7 @@ public class RedSquare implements MouseListener, GLEventListener {
//pmvMatrix.glOrthof(-4.0f, 4.0f, -4.0f, 4.0f, 1.0f, 100.0f);
if(0<=shaderPMVMatrix) {
- gl.glUniformMatrix4fv(shaderPMVMatrix, 2, false, pmvMatrix.glGetPMVMatrixf());
+ gl.glUniformMatrix4fv(shaderPMVMatrix, 2, false, pmvMatrix.glGetPMvMatrixf());
}
}
@@ -282,7 +282,7 @@ public class RedSquare implements MouseListener, GLEventListener {
pmvMatrix.glRotatef(ang, 0, 1, 0);
if(0<=shaderPMVMatrix) {
- gl.glUniformMatrix4fv(shaderPMVMatrix, 2, false, pmvMatrix.glGetPMVMatrixf());
+ gl.glUniformMatrix4fv(shaderPMVMatrix, 2, false, pmvMatrix.glGetPMvMatrixf());
}
// Draw a square