Chapter 6. Animation


In this chapter we'll talk about how to write a program which continually updates itself onscreen. There are four tasks in an animation program.

  • Place an animation update call in the app where you loop back indefinitely often.

  • Calculate an appropriate timestep dt for each update.

  • Cascade update calls from the app down to the individual data elements of the documents, passing them the current dt .

  • Update the views after the data is updated.

In this chapter, we'll have one section on each of these four tasks.



Software Engineering and Computer Games
Software Engineering and Computer Games
ISBN: B00406LVDU
EAN: N/A
Year: 2002
Pages: 272

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net