private void ReleaseTextures() { // Release the texture objects. CloudTexture1?.ShutDown(); CloudTexture1 = null; CloudTexture2?.ShutDown(); CloudTexture2 = null; }
private bool LoadTexture(SharpDX.Direct3D11.Device device, string textureFileName) { textureFileName = DSystemConfiguration.DataFilePath + textureFileName; // Create the texture object. Texture = new DTexture(); // Initialize the texture object. if (!Texture.Initialize(device, textureFileName)) { return(false); } return(true); }
private bool LoadTextures(SharpDX.Direct3D11.Device device, string textureFilename1, string textureFilename2) { // Create the first cloud texture object. CloudTexture1 = new DTexture(); // Initialize the first cloud texture object. if (!CloudTexture1.Initialize(device, DSystemConfiguration.DataFilePath + textureFilename1)) { return(false); } // Create the second cloud texture object. CloudTexture2 = new DTexture(); // Initialize the second cloud texture object. if (!CloudTexture2.Initialize(device, DSystemConfiguration.DataFilePath + textureFilename2)) { return(false); } return(true); }
private void ReleaseTexture() { // Release the texture object. Texture?.ShutDown(); Texture = null; }