From 5e6a6f3319f0c4c687fe71952ac9ecc17792b83a Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Mon, 10 Jun 2019 20:37:18 -0400 Subject: [PATCH] Fix normal for mesh --- iCameraPane.java | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/iCameraPane.java b/iCameraPane.java index bfbe44c..ccb0763 100644 --- a/iCameraPane.java +++ b/iCameraPane.java @@ -24,7 +24,7 @@ boolean IsFrozen(); - javax.media.opengl.GL GetGL(); + javax.media.opengl.GL GetGL0(); // Currently in Globals int DrawMode(); @@ -55,18 +55,34 @@ void DrawString(Object3D obj); - void BindTextures(cTexture tex, int resolution); + void BindTextures(cTexture tex, int resolution) throws Exception; void ReleaseTextures(cTexture tex); void DrawFace(Object3D obj, Vertex pv, Vertex qv, Vertex rv, Face face); + void DrawBox(cVector min, cVector max); + + void DrawGeometry(BoundaryRep bRep, boolean flipV, boolean selectmode); + + void DrawDynamicMesh(cMesh c); + + void StartTriangles(); + void EndTriangles(); + + int GenList(); + void NewList(int id); + void CallList(int id); + void EndList(); + + void NextIndex(); + void DrawParticles(TriMesh geo, Object3D shape, boolean selected, boolean rotate); void PrepOcclusion(BoundaryRep br, double[][] transform); void setCursor(java.awt.Cursor cursor); - com.sun.opengl.util.texture.TextureData GetTextureData(String tex, boolean bump, int resolution); + com.sun.opengl.util.texture.TextureData GetTextureData(String tex, boolean bump, int resolution) throws Exception; void repaint(); -- Gitblit v1.6.2