[SDL] physical address of pixels in linux
kokido at hotmail.com
Thu Dec 25 07:42:00 PST 2003
You have to lock the surface (SDL_LockSurface), then the pixel buffer will be available in surface->pixels, when you are finished unlock the surface (SDL_UnlockSurface). Pixel operations are much slower on Hardware surfaces, so if you plan to do lots of them to the surface often you will be better off with Software sufaces.
----- Original Message -----
To: sdl at libsdl.org
Sent: Thursday, December 25, 2003 3:51 AM
Subject: [SDL] physical address of pixels in linux
I create a surface with SDL_HWSURFACE in linux,but I can not find the physical address of the pixels,
Who can help me?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL