public void ShutDown() { // Release the font shader object. FontShader?.Shuddown(); FontShader = null; // Release the texture shader object. ColorShader?.ShutDown(); ColorShader = null; }
// Methods public bool Initilize(DDX11 D3DDevice, IntPtr windowsHandle) { // Create the texture shader object. ColorShader = new DColorShader(); // Initialize the texture shader object. if (!ColorShader.Initialize(D3DDevice.Device, windowsHandle)) { return(false); } // Create the font shader object. FontShader = new DFontShader(); // Initialize the font shader object. if (!FontShader.Initialize(D3DDevice.Device, windowsHandle)) { return(false); } return(true); }