Example #1
0
 public void CreateGeoRenderer()
 {
     if (Georenderer != null)
     {
         Georenderer.Dispose();
     }
     CleanRenderers();
     Georenderer = new GeoRenderer();
 }
Example #2
0
 public void Dispose()
 {
     if (F3Drenderer != null)
     {
         F3Drenderer.Dispose();
     }
     if (Colrenderer != null)
     {
         Colrenderer.Dispose();
     }
     if (Georenderer != null)
     {
         Georenderer.Dispose();
     }
     if (Lvlrenderer != null)
     {
         Lvlrenderer.Dispose();
     }
     CleanRenderers();
 }
Example #3
0
        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;
            }
        }
Example #4
0
        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;
            }
        }