Chapter 24. 2D and 3D graphics

In this chapter and the following two chapters (on Windows Graphics and OpenGL Graphics), we talk about how the Pop Framework uses graphics to draw images. Rather than committing once and for all to one way of doing graphics, we’ve used the Bridge software pattern to abstract the common core of our graphics calls into an interface called cGraphics.

As of 2002, the Pop Framework had two implementations of cGraphics : cGraphicsMFC and cGraphicsOpenGL. A cGraphicsDirectX will probably be added at some point; check the book’s web page for current information.

By way of review, Figure 24.1 is a UML class diagram of the Pop Framework, showing where the cGraphics class and its child classes fit in.

Figure 24.1. UML diagram ...

Get Software Engineering and Computer Games now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.