From cb37a129d1adb403019c96e798e86e2da9667f15 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Sun, 17 Nov 2019 17:56:04 -0500 Subject: [PATCH] Maze --- GLShapeDrawer.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/GLShapeDrawer.java b/GLShapeDrawer.java index f516e61..ccf72d9 100644 --- a/GLShapeDrawer.java +++ b/GLShapeDrawer.java @@ -136,13 +136,13 @@ } private static float[] glMat = new float[16]; - static public void drawOpenGL(CameraPane display, Transform trans, CollisionShape shape, Vector3f color, int debugMode) { + static public void drawOpenGL(iCameraPane display, Transform trans, CollisionShape shape, Vector3f color, int debugMode) { ObjectPool<Transform> transformsPool = ObjectPool.get(Transform.class); ObjectPool<Vector3f> vectorsPool = ObjectPool.get(Vector3f.class); //System.out.println("shape="+shape+" type="+BroadphaseNativeTypes.forValue(shape.getShapeType())); - GL gl = display.getGL(); + GL gl = display.GetGL0(); gl.glPushMatrix(); trans.getOpenGLMatrix(glMat); @@ -550,9 +550,9 @@ private static Map<SphereKey, Integer> sphereDisplayLists = new HashMap<SphereKey, Integer>(); private static SphereKey sphereKey = new SphereKey(); - static public void drawSphere(CameraPane display, float radius, int slices, int stacks) + static public void drawSphere(iCameraPane display, float radius, int slices, int stacks) { - GL gl = display.getGL(); + GL gl = display.GetGL0(); sphereKey.radius = radius; Integer glList = sphereDisplayLists.get(sphereKey); @@ -622,9 +622,9 @@ private static Map<CylinderKey, Integer> cylinderDisplayLists = new HashMap<CylinderKey, Integer>(); private static CylinderKey cylinderKey = new CylinderKey(); - static public void drawCylinder(CameraPane display, float radius, float halfHeight, int upAxis) + static public void drawCylinder(iCameraPane display, float radius, float halfHeight, int upAxis) { - GL gl = display.getGL(); + GL gl = display.GetGL0(); gl.glPushMatrix(); switch (upAxis) -- Gitblit v1.6.2