예제 #1
0
        private bool LoadTexture(Device device, string textureFileName)
        {
            textureFileName = SystemConfiguration.DataFilePath + textureFileName;

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

            // Initialize the texture object.
            Texture.Initialize(device, textureFileName);

            return true;
        }
예제 #2
0
 private void ReleaseTexture()
 {
     // Release the texture object.
     if (Texture != null)
     {
         Texture.Shutdown();
         Texture = null;
     }
 }