There is a libraray called DRS (Dirty Rectangle System) just for that =
Check out the Allegro Homepage for a Link.
----- Ursprungligt meddelande -----=20
Fr=E5n: Vikas Yadav <amitvikas@...>
Skickat: den 26 juli 2000 06:55
=C4mne: [AL] Dirty Rectangles
> How to calculate dirty rectangles in allegro. Is there are function =
> doing this calculation
> or do I have to write explicit code for that. The "demo" program uses
> such trick.
> The problem is a plane needs to be redrawn whenever it is moved by the
> arrow keys. Simple=20
> clear(sub_bitmap) and blit(picture,sub_bitmap) still does not escape
> flikering. So I think this "dirty rectangles" would give better
> Why does this flickering occur. continous bliting the screen or
> clear()ing the screen between two blit attempts?
> #Vikas Yadav, India
> file://PGP key:http://www.programmingparadise.com/misc/vikas.pgp
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
Get latest updates about Open Source Projects, Conferences and News.