xna and graphics files in a library

Started by
0 comments, last by MJP 14 years, 1 month ago
Here is what i want to do in XNA. I have created an XNA library that has classes for GUI. Now I want to use image files to skin the GUI with. If the user doesnt specify a Texture2D to skin it with, I want it to use a default Texture2D. I want to load this from an image file. So how can I include the default image files into my GUI library?
Advertisement
It's possible to embed compiled content as a resource in your compiled assembly (.dll). This way users can just reference the DLL, and they don't need to worry about having the .xnb files. See this.

This topic is closed to new replies.

Advertisement