public void CreateGeoRenderer() { if (Georenderer != null) { Georenderer.Dispose(); } CleanRenderers(); Georenderer = new GeoRenderer(); }
public void Dispose() { if (F3Drenderer != null) { F3Drenderer.Dispose(); } if (Colrenderer != null) { Colrenderer.Dispose(); } if (Georenderer != null) { Georenderer.Dispose(); } if (Lvlrenderer != null) { Lvlrenderer.Dispose(); } CleanRenderers(); }
public void Render() { switch (mode) { case RenderMode.F3D: F3Drenderer.Render(); break; case RenderMode.Collision: Colrenderer.Render(); break; case RenderMode.Geo: Georenderer.Render(); break; case RenderMode.Level: Lvlrenderer.Render(); break; } }
public void Init(RenderMode renderMode) { mode = renderMode; switch (mode) { case RenderMode.F3D: F3Drenderer.Init(); break; case RenderMode.Collision: Colrenderer.Init(); break; case RenderMode.Geo: Georenderer.Init(); break; case RenderMode.Level: Lvlrenderer.Init(); break; } }