views:

17

answers:

1

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");
A: 

Found solution.

texture = new Bitmap(Properties.Resources.image);

Did the trick. :)

Semas
Please post the solution so others that are looking for the same thing can be helped. Thanks!
TheGeekYouNeed