public static void Render( ) { GL.PushMatrix( ); GL.Color(Color.white); try { // Depth Test On LinesZOn.Render(LineMaterialZOn); CirclesZOn.Render(LineMaterialZOn); TrianglesZOn.Render(LineMaterialZOn); QuadsZOn.Render(LineMaterialZOn); StringsZOn.Render3D(TextFont, TextMaterialZOn); // Depth Test Off LinesZOff.Render(LineMaterialZOff); CirclesZOff.Render(LineMaterialZOff); TrianglesZOff.Render(LineMaterialZOff); QuadsZOff.Render(LineMaterialZOff); StringsZOff.Render(TextFont, TextMaterialZOff); } catch (System.Exception ex) { Debug.LogException(ex); GL.Color(Color.white); GL.PopMatrix( ); return; } GL.Color(Color.white); GL.PopMatrix( ); }
public static void DeInit() { IsInitialized = false; LinesZOff.Dispose( ); QuadsZOff.Dispose( ); TrianglesZOff.Dispose( ); CirclesZOff.Dispose( ); StringsZOff.Dispose( ); LinesZOn.Dispose( ); QuadsZOn.Dispose( ); TrianglesZOn.Dispose( ); CirclesZOn.Dispose( ); StringsZOn.Dispose( ); LineMaterialZOff = null; LineMaterialZOn = null; TextMaterialZOff = null; TextMaterialZOn = null; TextFont = null; }