[SDL] SDL_Blit question
Salvatore Di Fazio
salvatore.difazio at gmail.com
Fri Jun 16 22:54:53 PDT 2006
Julien Lecomte ha scritto:
> On 16/06/2006 20:52, Salvatore Di Fazio wrote:
>
> In pseudo-code you do, in case 1:
>
> for everything in array
> if (swap) then blit
> end for
>
> In case 2:
>
> for everything in array
> swap
> end for
> blit1
> blit2
> ...
> blitN
>
> There's a difference here: if 'swap' returns false, then nothing is blitted.
Yes it's right.
Why is it difference?
If the swap function return false I don't swap anything so I've the last
image in the screen?
is it incorrect?
Tnx
More information about the SDL
mailing list