From 6c2c00ee7f33ec46f79eba11c349f766cb207ec0 Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 29 Apr 2019 10:39:23 -0400 Subject: [PATCH] Material pane --- cSpring.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cSpring.java b/cSpring.java index 445f1ac..914577b 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; @@ -565,11 +565,11 @@ // } //new Exception().printStackTrace(); - GL gl = display.GetGL(); // getGL(); + GL gl = display.GetGL0(); // getGL(); //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