[SDL] physical address of pixels in linux
Wes Poole
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 -----
From: xlf
To: sdl at libsdl.org
Sent: Thursday, December 25, 2003 3:51 AM
Subject: [SDL] physical address of pixels in linux
Hi ,
I create a surface with SDL_HWSURFACE in linux,but I can not find the physical address of the pixels,
Who can help me?
Xie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031225/7f64d2aa/attachment.htm>
More information about the SDL
mailing list