// Methods
        public bool Initilize(DDX11 D3DDevice, IntPtr windowsHandle)
        {
            // Create the texture shader object.
            TextureShader = new DTextureShader();

            // Initialize the texture shader object.
            if (!TextureShader.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);
            }

            // Create the foliage shader object.
            FoliageShader = new DFoliagesShader();

            // Initialize the foliage shader object.
            if (!FoliageShader.Initialize(D3DDevice.Device, windowsHandle))
            {
                return(false);
            }

            return(true);
        }
 public void ShutDown()
 {
     // Release the foliage shader object.
     FoliageShader?.ShutDown();
     FoliageShader = null;
     // Release the font shader object.
     FontShader?.Shuddown();
     FontShader = null;
     // Release the texture shader object.
     TextureShader?.ShutDown();
     TextureShader = null;
 }