Chapter 5. Graphics Device Abstraction
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 ...
Get Windows Graphics Programming Win32 GDI and DirectDraw® 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.