.. | .. |
---|
136 | 136 | } |
---|
137 | 137 | private static float[] glMat = new float[16]; |
---|
138 | 138 | |
---|
139 | | - static public void drawOpenGL(CameraPane display, Transform trans, CollisionShape shape, Vector3f color, int debugMode) { |
---|
| 139 | + static public void drawOpenGL(iCameraPane display, Transform trans, CollisionShape shape, Vector3f color, int debugMode) { |
---|
140 | 140 | ObjectPool<Transform> transformsPool = ObjectPool.get(Transform.class); |
---|
141 | 141 | ObjectPool<Vector3f> vectorsPool = ObjectPool.get(Vector3f.class); |
---|
142 | 142 | |
---|
143 | 143 | //System.out.println("shape="+shape+" type="+BroadphaseNativeTypes.forValue(shape.getShapeType())); |
---|
144 | 144 | |
---|
145 | | - GL gl = display.getGL(); |
---|
| 145 | + GL gl = display.GetGL0(); |
---|
146 | 146 | |
---|
147 | 147 | gl.glPushMatrix(); |
---|
148 | 148 | trans.getOpenGLMatrix(glMat); |
---|
.. | .. |
---|
550 | 550 | private static Map<SphereKey, Integer> sphereDisplayLists = new HashMap<SphereKey, Integer>(); |
---|
551 | 551 | private static SphereKey sphereKey = new SphereKey(); |
---|
552 | 552 | |
---|
553 | | - static public void drawSphere(CameraPane display, float radius, int slices, int stacks) |
---|
| 553 | + static public void drawSphere(iCameraPane display, float radius, int slices, int stacks) |
---|
554 | 554 | { |
---|
555 | | - GL gl = display.getGL(); |
---|
| 555 | + GL gl = display.GetGL0(); |
---|
556 | 556 | |
---|
557 | 557 | sphereKey.radius = radius; |
---|
558 | 558 | Integer glList = sphereDisplayLists.get(sphereKey); |
---|
.. | .. |
---|
622 | 622 | private static Map<CylinderKey, Integer> cylinderDisplayLists = new HashMap<CylinderKey, Integer>(); |
---|
623 | 623 | private static CylinderKey cylinderKey = new CylinderKey(); |
---|
624 | 624 | |
---|
625 | | - static public void drawCylinder(CameraPane display, float radius, float halfHeight, int upAxis) |
---|
| 625 | + static public void drawCylinder(iCameraPane display, float radius, float halfHeight, int upAxis) |
---|
626 | 626 | { |
---|
627 | | - GL gl = display.getGL(); |
---|
| 627 | + GL gl = display.GetGL0(); |
---|
628 | 628 | |
---|
629 | 629 | gl.glPushMatrix(); |
---|
630 | 630 | switch (upAxis) |
---|