diff options
Diffstat (limited to 'src/gleem/ExaminerViewer.java')
-rw-r--r-- | src/gleem/ExaminerViewer.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gleem/ExaminerViewer.java b/src/gleem/ExaminerViewer.java index 2b66b73..e22eb5f 100644 --- a/src/gleem/ExaminerViewer.java +++ b/src/gleem/ExaminerViewer.java @@ -170,7 +170,7 @@ public class ExaminerViewer { /** Call this at the end of your display() method to cause the Modelview matrix to be recomputed for the next frame. */ - public void update(GL gl) { + public void update(GL2 gl) { recalc(gl); } @@ -178,7 +178,7 @@ public class ExaminerViewer { the current matrix. This is useful for drawing a skybox. Does not update which OpenGL matrix is currently being modified or the ExaminerViewer's camera parameters. */ - public void updateInverseRotation(GL gl) { + public void updateInverseRotation(GL2 gl) { recalcInverseRotation(gl); } @@ -192,7 +192,7 @@ public class ExaminerViewer { ExaminerViewer to recompute its position based on the visible geometry. A BSphereProvider must have already been set or this method has no effect. */ - public void viewAll(GL gl) { + public void viewAll(GL2 gl) { if (provider == null) { return; } @@ -592,20 +592,20 @@ public class ExaminerViewer { **********************/ } - private void recalc(GL gl) { + private void recalc(GL2 gl) { recalc(); - gl.glMatrixMode(GL.GL_MODELVIEW); + gl.glMatrixMode(GL2ES1.GL_MODELVIEW); float[] data = new float[16]; params.getModelviewMatrix().getColumnMajorData(data); gl.glLoadMatrixf(data, 0); - gl.glMatrixMode(GL.GL_PROJECTION); + gl.glMatrixMode(GL2ES1.GL_PROJECTION); params.getProjectionMatrix().getColumnMajorData(data); gl.glLoadMatrixf(data, 0); } - private void recalcInverseRotation(GL gl) { + private void recalcInverseRotation(GL2 gl) { Rotf oriInv = orientation.inverse(); Vec3f tmp = new Vec3f(); float ang = orientation.get(tmp); |