コード例 #1
0
 public void CreateF3DRenderer()
 {
     if (F3Drenderer != null)
     {
         F3Drenderer.Dispose();
     }
     CleanRenderers();
     F3Drenderer = new F3DRenderer();
 }
コード例 #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();
 }
コード例 #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;
            }
        }
コード例 #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;
            }
        }