[SDL] SDL_Flip question about buffer contents
Solra Bizna
sbizna at tejat.net
Fri Apr 11 00:22:32 PDT 2008
On Wed, Apr 9, 2008 at 10:10 PM, David Olsen <jolynsbass at gmail.com> wrote:
> If I'm exclusively dealing with software surfaces, do I have any sort of
> guarantee as to what is in the video buffer after a call to
> SDL_Flip(screen)?
When your screen is a software surface, SDL is shadowing it and
handles all scary details for you. Anything you put in screen->pixels
stays in screen->pixels and doesn't get displayed until you UpdateRect
or Flip. Stuff that got UpdateRect'd or Flip'd onto the screen will
never be lost track of.
-:sigma.SB
More information about the SDL
mailing list