summaryrefslogtreecommitdiffstats
path: root/src/net/java/joglutils/msg/elements/GLModelMatrixElement.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2009-07-18 23:32:24 +0000
committerKenneth Russel <[email protected]>2009-07-18 23:32:24 +0000
commita33fade58b3cf22b72241767e6615042a5ed22c1 (patch)
tree0f9700cb59193afbf27fef9481b2a28c2d14938d /src/net/java/joglutils/msg/elements/GLModelMatrixElement.java
parent190d2e62712a7de5ee8e9a7989157d06b34aedd9 (diff)
Updates to joglutils workspace to work with JOGL 2 APIs. Cleaned up
build process. Added targets for joglutils.jar and joglutils-demos.jar as well as javadoc. Deleted build directory from svn. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/joglutils/trunk@103 83d24430-9974-4f80-8418-2cc3294053b9
Diffstat (limited to 'src/net/java/joglutils/msg/elements/GLModelMatrixElement.java')
-rw-r--r--src/net/java/joglutils/msg/elements/GLModelMatrixElement.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/java/joglutils/msg/elements/GLModelMatrixElement.java b/src/net/java/joglutils/msg/elements/GLModelMatrixElement.java
index a63f8ae..c10e436 100644
--- a/src/net/java/joglutils/msg/elements/GLModelMatrixElement.java
+++ b/src/net/java/joglutils/msg/elements/GLModelMatrixElement.java
@@ -68,7 +68,7 @@ public class GLModelMatrixElement extends ModelMatrixElement {
this.state = state;
// Cause side-effects in OpenGL
- GL gl = GLU.getCurrentGL();
+ GL2 gl = GLU.getCurrentGL().getGL2();
gl.glPushMatrix();
}
@@ -76,7 +76,7 @@ public class GLModelMatrixElement extends ModelMatrixElement {
super.pop(state, previousTopElement);
// Cause side-effects in OpenGL
- GL gl = GLU.getCurrentGL();
+ GL2 gl = GLU.getCurrentGL().getGL2();
gl.glPopMatrix();
}
@@ -85,7 +85,7 @@ public class GLModelMatrixElement extends ModelMatrixElement {
// Cause side-effects in OpenGL
// Recompute the complete modelview matrix
Mat4f mat = ViewingMatrixElement.getInstance(state).getMatrix();
- GL gl = GLU.getCurrentGL();
+ GL2 gl = GLU.getCurrentGL().getGL2();
if (gl.isExtensionAvailable("GL_VERSION_1_3")) {
gl.glLoadTransposeMatrixf(mat.getRowMajorData(), 0);
} else {
@@ -97,7 +97,7 @@ public class GLModelMatrixElement extends ModelMatrixElement {
public void multElt(Mat4f matrix) {
super.multElt(matrix);
- GL gl = GLU.getCurrentGL();
+ GL2 gl = GLU.getCurrentGL().getGL2();
if (gl.isExtensionAvailable("GL_VERSION_1_3")) {
gl.glMultTransposeMatrixf(matrix.getRowMajorData(), 0);
} else {