From c60a1ad4f6aa4904e80280586b440a584b5ff061 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 22 Apr 2019 15:17:45 -0400 Subject: [PATCH] Refactoring phase 2 --- cSpring.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cSpring.java b/cSpring.java index 445f1ac..47b7769 100644 --- a/cSpring.java +++ b/cSpring.java @@ -10,7 +10,7 @@ boolean IsStatic() { - return !(live && (CameraPane.isLIVE() || CameraPane.waslive)); + return !(live && (Globals.isLIVE() || CameraPane.waslive)); } void Revert() @@ -543,13 +543,13 @@ } // serial lost - void DrawNode0(CameraPane display) + void DrawNode0(iCameraPane display) { super.DrawNode(display, null, false); } - void DrawNode/*notused*/(CameraPane display, Object3D /*Composite*/ root, boolean selected) + void DrawNode/*notused*/(iCameraPane display, Object3D /*Composite*/ root, boolean selected) { // assert displaylist == -1; @@ -569,7 +569,7 @@ //gl.glDisable(GL.GL_LIGHTING); - if (display.drawMode == display.SHADOW) + if (display.DrawMode() == display.SHADOW) { gl.glDisable(gl.GL_CULL_FACE); } @@ -762,7 +762,7 @@ gl.glEnd(); gl.glEnable(GL.GL_LIGHTING); /**/ - if (display.CULLFACE) + if (display.BackFaceCullMode()) { gl.glEnable(gl.GL_CULL_FACE); } @@ -775,7 +775,7 @@ // displaylist = 0; // june 2013 -1; //System.out.println("DRAW " + display.drawMode); - if (live && display.isLIVE() && display.drawMode == display.DEFAULT) + if (live && Globals.isLIVE() && display.DrawMode() == display.DEFAULT) { //System.out.println("UPDATE"); Phys.update(); -- Gitblit v1.6.2