Hello, I'd like to ask how could I load textures from program resources.
This code works fine, but its only from file. How about loading from resources?
texture = TextureLoader.FromFile(device, "file.png");
Hello, I'd like to ask how could I load textures from program resources.
This code works fine, but its only from file. How about loading from resources?
texture = TextureLoader.FromFile(device, "file.png");
Found solution.
texture = new Bitmap(Properties.Resources.image);
Did the trick. :)