• Advertisement
Sign in to follow this  

xna and graphics files in a library

This topic is 2911 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement