Example #1
0
        public void Shutdown()
        {
            // Release the camera object.
            Camera = null;

            // Release the transparent shader object.
            TransparentShader?.ShutDown();
            TransparentShader = null;
            // Release the texture shader object.
            TextureShader?.ShutDown();
            TextureShader = null;
            //// Release the model object.
            Model?.Shutdown();
            Model = null;
            Model2?.Shutdown();
            Model2 = null;
            // Release the Direct3D object.
            D3D?.ShutDown();
            D3D = null;
        }