Beispiel #1
0
        private bool LoadTexture(Device device, string textureFileName)
        {
            textureFileName = DSystemConfiguration.FontFilePath + textureFileName;

            // Create new texture object.
            Texture = new DTexture();

            // Initialize the texture object.
            if (!Texture.Initialize(device, textureFileName))
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
 private void ReleaseTexture()
 {
     // Release the texture object.
     Texture?.ShutDown();
     Texture = null;
 }