Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

SDL_Surface from embedded resource?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 KazenoZ   Members   

152
Like
0Likes
Like

Posted 02 March 2012 - 10:07 AM

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!

#2 KazenoZ   Members   

152
Like
0Likes
Like

Posted 07 March 2012 - 12:08 PM

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?




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.