private bool LoadTexture(Device device, string textureFileName) { // Create the cloud texture object. Texture = new DTexture(); // Initialize the cloud texture object. if (!Texture.Initialize(device, DSystemConfiguration.DataFilePath + textureFileName)) { return(false); } return(true); }
private bool LoadTextures(SharpDX.Direct3D11.Device device, string textureFileNames) { textureFileNames = DSystemConfiguration.DataFilePath + textureFileNames; // Create the texture object. ColourTexture = new DTexture(); // Initialize the texture object. if (!ColourTexture.Initialize(device, textureFileNames)) { return(false); } return(true); }