#ifndef _CORERAVEN_DIRECT3D9_H #define _CORERAVEN_DIRECT3D9_H #include "common.h" #include "keymap.h" #include "core.h" #if defined(__WIN32__)||defined(WIN32)||defined(_MSC_VER) using namespace std; LRESULT APIENTRY WindowProcD3D9(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp); class CoreD3D9: public Core { protected: HINSTANCE instance; HWND hwnd; D3DCAPS9 caps; LPDIRECT3D9 d3d; LPDIRECT3DDEVICE9 dev; D3DDISPLAYMODE dispmode; D3DPRESENT_PARAMETERS d3dpp; friend class RendererD3D9; friend LRESULT APIENTRY WindowProcD3D9(HWND hwnd,UINT msg,WPARAM wp,LPARAM lp); // main constructor for use with CoreFactory friend class CoreFactory; CoreD3D9(char *title,unsigned int width,unsigned int height,int colorsize,int depthsize,int flags); public: virtual ~CoreD3D9(); virtual bool Start(); // initialize API for use virtual bool Stop(); // deinitialize API before deleting virtual bool Update(); // update; this handles events and updates the display }; #endif #endif