コード例 #1
0
        public void Shutdown()
        {
            // Release the text object.
            if (Text != null)
            {
                Text.Shutdown();
                Text = null;
            }

            // Release the font shader object.
            if (FontShader != null)
            {
                FontShader.Shuddown();
                FontShader = null;
            }

            // Release the CPU object
            if (CPU != null)
            {
                CPU.Shutdown();
                CPU = null;
            }

            // Release the FPS object
            FPS = null;

            // Release the position object.
            Position = null;

            // Release the Timer object
            Timer = null;

            // Release the light shader object.
            if (ColorShader != null)
            {
                ColorShader.Shuddown();
                ColorShader = null;
            }

            // Release the terrain object.
            if (Terrain != null)
            {
                Terrain.Shutdown();
                Terrain = null;
            }

            // Release the camera object.
            if (Camera != null)
            {
                Camera = null;
            }

            // Release the Direct3D object.
            if (D3D != null)
            {
                D3D.Shutdown();
                D3D = null;
            }

            // Release the input object.
            if (Input != null)
            {
                Input.Shutdown();
                Input = null;
            }
        }