[SDL] Embedded Images

Donny Viszneki donny.viszneki at gmail.com
Wed Oct 11 17:56:51 PDT 2006


On 10/10/06, Chris Weed <webmaster at cjweed.com> wrote:
> 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.

No. It wouldn't.

> 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.

You could write a C program to do it yourself in less than 20 lines.
More appropriate languages like perl could probably do it in one line
comfortably. The GIMP will do it for you, but it will not preserve
your file format / image encoding.

> 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.

GOOD THINKING. There is no good reason to stuff your images into your
program binary.




More information about the SDL mailing list