[SDL] Re: Moving image

Olivier Dagenais olivier.dagenais at canada.com
Thu Mar 22 06:27:26 PST 2001


...so update the destination with the background and then your image every
frame.

I think you could also only redraw the part(s) of your background (using the
partial rectangle update features of SDL) that were touched by your image
but that becomes a bad idea as soon as you have a hole in your image.

--
----------------------------------------------------------------------
Olivier A. Dagenais - Software Architect and Developer


"Roger D. Vargas" <mad at pesca.esisc.colombus.cu> wrote in message
news:Pine.LNX.4.10.10103220828330.674-100000 at pesca.esisc.colombus.cu...
> I'm writing a very basic program to move an image, but I don't know how to
> erase the previous one without affecting the background. How can I do
> this?
>
> --
> Roger D. Vargas            | "Humans have so many emotions, Artoo. And
most
> VQt Development Team       | seem to cause them pain. I do not understand,
> http://vqt.sourceforge.net | but I'm glad I have none. And yet -- I can't
help
>                              wondering sometimes... what it would be
like."
>                              C-3PO, Protocol Droid. Star Wars 2: World of
Fire.
>
>






More information about the SDL mailing list