Esempio n. 1
0
 public void ShutDown()
 {
     // Release the Terrain Shader ibject.
     TerrainShader?.ShutDown();
     TerrainShader = null;
     // Release the font shader object.
     FontShader?.Shuddown();
     FontShader = null;
 }
Esempio n. 2
0
        // Methods
        public bool Initilize(DDX11 D3DDevice, IntPtr windowsHandle)
        {
            // Create the font shader object.
            FontShader = new DFontShader();
            // Initialize the font shader object.
            if (!FontShader.Initialize(D3DDevice.Device, windowsHandle))
            {
                return(false);
            }

            // Create the terrain shader object.
            TerrainShader = new DTerrainShader();
            // Initialize the terrain shader object.
            if (!TerrainShader.Initialize(D3DDevice.Device, windowsHandle))
            {
                return(false);
            }

            return(true);
        }