00001 00004 #ifndef _D3D9_H_ 00005 #include "d3d9.h" 00006 #endif 00007 #ifndef __D3DX9_H__ 00008 #include "d3dx9.h" 00009 #endif 00010 00011 bool Enumerate(LPDIRECT3D9 lpD, UINT xRes, UINT yRes, unsigned int* adapter); 00012 00013 struct CUSTOMVERTEX { 00014 D3DXVECTOR3 pos; 00015 D3DCOLOR color; 00016 D3DXVECTOR2 texCoord; 00017 }; 00018 00019 #define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE|D3DFVF_TEX1)