#ifndef __GRAPHICS_ENGINE_H__ #define __GRAPHICS_ENGINE_H__ #include <d3d9.h> #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "d3dx9.lib") class GraphicsEngine { public: GraphicsEngine(); ~GraphicsEngine(); bool Initialize(HWND hWnd); void Shutdown(); private: IDirect3D9 *m_pD3D; IDirect3DDevice9 *m_pDevice; }; #endif
Källa: http://blinkenlights.se/