SDL_LoadBMP()

Does SDL_LoadBMP() always load the image into system memory? Can you make it
load the image into video memory?

-Garrett, WPI student majoring in Computer Science.

“He who joyfully marches in rank and file has already earned
my contempt. He has been given a large brain by mistake, since
for him the spinal cord would suffice.” -Albert Einstein

Does SDL_LoadBMP() always load the image into system memory? Can you make it
load the image into video memory?

Load the BMP, and then use SDL_DisplayFormat() on it.
If the hardware supports it on that OS, and you have SDL_HWSURFACE
set on the video display surface, then the image will be placed in
video memory.

The hardware support in SDL will greatly improve once more operating
systems have hardware acceleration support. :-/

-Sam Lantinga				(slouken at devolution.com)

Lead Programmer, Loki Entertainment Software–
“Any sufficiently advanced bug is indistinguishable from a feature”
– Rich Kulawiec

Hello,

How to use SDL_LoadBMP(“file.bmp”) with a RC file ?

info: I use VC ++ !

Tanks !

Visitez mon Site

Hello,

How to use SDL_LoadBMP(“file.bmp”) with a RC file ?

I think you can load the resource as a memory chunk using Win32 APIs and
then use SDL_RWFromMem() and SDL_LoadBMP_RW() to load the BMP from memory.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment