Loading bitmap from resource

Hi all!
At first, sorry for my english.
Is there any way, to put a BMP to binary and load it in SDL? I’m using g++ and Geany as IDE…

SDL_LoadBMP()

You might want to look at the Doc Wiki:

http://www.libsdl.org/cgi/docwiki.cgi/SDL_LoadBMPFrom: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of kazuldur
Sent: Monday, January 11, 2010 12:21 PM
To: sdl at lists.libsdl.org
Subject: [SDL] Loading bitmap from resource

Hi all!
At first, sorry for my english.
Is there any way, to put a BMP to binary and load it in SDL? I’m using g++
and Geany as IDE…

Yea, I know this function, but it can load an image only from external file. I want to have everything in one executable file.

You can use:

SDL_LoadBMP_RW()

This let’s you use the SDL_RWops to load from a file, from memory, etc.From: sdl-bounces@lists.libsdl.org [mailto:sdl-bounces at lists.libsdl.org] On
Behalf Of kazuldur
Sent: Monday, January 11, 2010 1:06 PM
To: sdl at lists.libsdl.org
Subject: Re: [SDL] Loading bitmap from resource

Yea, I know this function, but it can load an image only from external file.
I want to have everything in one executable file.