Skip to Content
Programming 2D Games
book

Programming 2D Games

by Charles Kelly
June 2012
Beginner
438 pages
15h 26m
English
A K Peters/CRC Press
Content preview from Programming 2D Games
693.11. Determining Device Capabilities
• *pCaps. Pointer to a D3DCAPS9 structure that is lled in by this function with the
device capabilities.
We will add this function to our initialize function in graphics.cpp. If the device
supports hardware vertex processing, we will use it. e new initialize function can be
seen in Listing 3.28.
//========================================================================
// Initialize DirectX graphics
// Throws GameError on error
//========================================================================
void Graphics::initialize(HWND hw, int w, int h, bool full)
{
hwnd = hw;
width = w;
height = h;
fullscreen ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning 3D Game Programming

Beginning 3D Game Programming

Tom Miller

Publisher Resources

ISBN: 9781466508705