[SDL] Embedded Images

Chris Weed webmaster at cjweed.com
Tue Oct 10 19:33:23 PDT 2006


David Olofson <david <at> olofson.net> writes:

> 
> On Tuesday 10 October 2006 15:48, Chris Weed wrote:
> > How would I use IMG_Load() or the like using embedded images.  I
> > don't want to have a separate folder with my images that need to be
> > loaded into memory everytime the application starts.
> 
> Hints:
> 	SDL_RWops
> 	IMG_Load_RW()
> 
> //David Olofson - Programmer, Composer, Open Source Advocate
> 
> .-------  http://olofson.net - Games, SDL examples  -------.
> |        http://zeespace.net - 2.5D rendering engine       |
> |       http://audiality.org - Music/audio engine          |
> |     http://eel.olofson.net - Real time scripting         |
> '--  http://www.reologica.se - Rheology instrumentation  --'
> 

Thank you for all the information (everyone).
I like the idea of using IMG_Load_RW(), and I'm assuming that avoids these
"double loaded" problems where the image is loaded into ram twice.

This seems rather complicated though, converting my images to C files.  I could
only find one tool that would do this, and it's kind of tricky.  I think I might
just leave the system the way it is, it's part of an embedded system and
currently only used by me... so I don't think there will be much problem.






More information about the SDL mailing list