December 2000
Intermediate to advanced
1280 pages
28h 56m
English
The main Windows graphics programming API is GDI, which stands for Graphics Device Interface. DirectDraw is Microsoft's new two-dimensional game-oriented programming API, while Direct3D is for games and applications that need three-dimensional display. These graphics APIs are device-independent programming interfaces, which allow applications written in them to run on different graphics devices.
To make a graphics API device independent, it needs a good graphics device abstraction which can represent a variety of graphics devices, hide their differences, yet not sacrifice performance.
This chapter will examine GDI's main mechanism of graphics device abstraction: device context. We will look at features provided ...