Sign in to follow this  

SDL_Surface from embedded resource?

This topic is 2142 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

Hello,

A rather simple question, probably a bit of a rought answer though =\
Is there a way to create a SDL_Surface from an embedded resource in C++?
Maybe from bytes saved to an external file?

I'm mainly looking for any way that would allow a game to function using SDL without having to pack all the graphics along with it.

Is there anything like that that can be supported by SDL?
Thanks!

Share this post


Link to post
Share on other sites
Bump.
Anyone? Maybe a solution not through SDL? Maybe it's possible in some way to write out the files' bytes into a text file and use those to reconstruct the files in a temporary folder once the project runs? Would that be possible?

Share this post


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