Пример #1
0
 public void ShutDown()
 {
     // Release the font shader object.
     FontShader?.Shuddown();
     FontShader = null;
     // Release the light shader object.
     LightShader?.ShutDown();
     LightShader = null;
 }
Пример #2
0
        // Methods
        public bool Initilize(DDX11 D3DDevice, IntPtr windowsHandle)
        {
            // Create the light shader object.
            LightShader = new DLightShader();
            // Initialize the light shader object.
            if (!LightShader.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);
        }