[SDL] SDL_LoadBMP()

Sam Lantinga slouken at devolution.com
Tue Aug 24 10:31:57 PDT 1999


>   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 



More information about the SDL mailing list