
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 ...