Hi! > Simple question, hopefully it's a simple answer. Can somebody please tell me > how to do animations without getting the flickkering of the screen. At the > moment it's all very clunky as I'm doing a erase on the picture area and > redrawing it. > > What are the general tehniques (secrets) of doing animations? Essentially, you create an offscreen window with WinCreateOffscreenWindow, you make that window your drawing window with WinSetDrawWindow, then do all your painting to that offscreen window. When you're done drawing you copy the offscreen window to the visible display window with WinCopyRectangle. If the OS routines are fast enough for you then you are all set. Otherwise: If you are a do-it-yourself person, or not familiar with C++, look at Aaron Ardiri's (www.ardiri.com) Cube3D to see some assembly routines which will help you gain some speed. If you want a C++ framework with plenty of assembly language acceleration, use Razor! (www.tilo-christ.de/razor).
Cheers, Tilo P.S.: If you should read the Palm OS documentation, and you encounter the WinScreenLock API, and you think it might help you: Run away as fast as you can!!! It is badly broken on many devices, and will Officially Hurt(tm) you :-) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
