Windows Animation Programming with C++
By Michael J. Young
Published by AP Professional
Pages: 303, plus a companion CD
This book teaches the basic programming techniques for generating animation, and provides ready-to-use C++ classes that let you quickly add animation to your C++ programs.
Topics on this page:
"Young introduces the joyful and attractive world of animation. [The book] shows how to write animation programs, or add animation to existing programs, using only a standard C++ development environment. ... Its coherent style, the clarity of the material, and the attractiveness of the topic make the book good and easily approachable." Svetlana Segarceanu, Computing Reviews
"This book is a practical and non-intimidating introduction to the fundamentals of animation programming for Windows using C++. ... It provides a set of ready-to-use C++ animation classes on a disk which can be used to add animation to the reader's programs." Lavoisier Management, November, 1996
Part I: Windows Basics
Chapter 1: Windows Programming Basics
Chapter 2: Windows Graphics Basics
Part II: Sprite Animation
Chapter 3: A Sprite Animation Class
Chapter 4: Drawing Animation Figures
Chapter 5: Generating Manual Sprite Animation
Chapter 6: Generating Automatic Sprite Animation
Part III: Frame Animation
Chapter 7: A Frame Animation Class
Chapter 8: Basic Frame Animation and Rotation
Chapter 9: Panning, Zooming, and Moving Frame Animations
- The source code files for the animation classes.
- The source code files—as well as the executable files—for all the example programs
Note that some or all of these errors might have been corrected in more recent printings of the book.
page 5, Table 1.1, first item
"TEMPLATE.RC" should be "TEMPLATE.C"
page 38, Table 2.1, "Drawing mode" item, right column:
"Determines the way ..." should be "Determines the way that pen and brush colors are combined with existing device colors when lines or closed figures are drawn"
page 52-53, Table 2.3 has three errors (not the best table in the book!):
- In the table heading, "C++ operators" should be in the last column, not the second column.
- The result of DSTINVERT given in the second column should read "The color of each pixel is the inverse of the destination pixel".
- For the last item (WHITENESS), the value in the right column should be "D=1".
page 149: near end of first paragraph:
"...Windows never posts more than a single timer message every 54.5 milliseconds..." should be "...Windows never posts more than a single timer message every 54.9 milliseconds..."