In this chapter, you gain knowledge of Visual C++ graphics capabilities by developing the VC++ Doodle game. VC++ Doodle is a drawing program that allows players to create freehand images and draw a number of shapes, such as circles, lines, and rectangles. Figures 10.1 to 10.4 show examples from the VC++ Doodle game, demonstrating its overall program flow.
Figure 10.1: The user interface for the VC++ Doodle game consists of a control panel and a drawing area.
Figure 10.2: VC++ Doodle gives the player a range of colors to choose from.
Figure 10.3: The game assists the player in drawing an assortment of predefined shapes.
Figure 10.4: The player also has the option of making a freehand drawing using any combination of colors.
After you have completed the VC++ Doodle game, you will have acquired a basic understanding of Visual C++'s built-in graphics drawing capabilities. This will serve as a good foundation to move on to more advanced graphics topics in the future.