Chapter 25. Windows graphics

In this chapter we talk about Windows graphics. The cGraphicsMFC implements Windows graphics using standard methods that are in the Windows GDI. The good thing about the GDI graphics methods is that you can be sure they’ll work on any Windows machine, no matter what libraries are installed and no matter what kind of graphics card it has.

A limitation of the cGraphicsMFC class is that we haven’t bothered to implement three-dimensional methods for it, so if you want to show three-dimensional graphics you need to use cGraphicsOpenGL (or, should it become available, cGraphicsDirectX ).

It would be nice to simply say that you should always use cGraphicsMFC for two-dimensional games and cGraphicsOpenGL for three-dimensional ...

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.