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