// Main Include Headers. #include <stdio.h> // Required header for sprintf() & sprintf_s(). #define DIRECTINPUT_VERSION 0x0800 // Direct3D #include <d3d9.h> #include <d3dx9.h> #include <dinput.h> // The library files for Direct 3D9. #pragma comment(lib, "d3d9.lib") #pragma comment(lib, "d3dx9.lib") #pragma comment (lib, "dxguid.lib") #pragma comment (lib, "dinput8.lib") #pragma comment (lib, "dxguid.lib") // Standard Template Library. #include <vector> using std::vector; // Used for random access. #include <list> using std::list; // Used for iteration. #include <string> using std::string; #include <map> using std::map; using std::pair; // Macro Include Headers. #include <assert.h> // Custom Macros. #ifndef SAFE_RELEASE #define SAFE_RELEASE(p) if (p) { p->Release(); p = NULL; } #endif #ifndef DXERROR #define DXERROR(a) { OutputDebugString(a); return false; } #endif #ifndef DIERRBOX #define DIERRBOX(a) { MessageBox(m_hWnd, a, "DirectInput Error", MB_OK | MB_ICONEXCLAMATION); return false; } #endif // #defines. #define WINDOW_WIDTH 1024 // Window Width. #define WINDOW_HEIGHT 768 // Window Height. #endif /* CRESOURCEHEADER_H_ */
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)