www.pudn.com > 3DRPG.rar > Font.h
#include#define SafeDelete(object) if(object!=NULL){delete object;object=NULL;} #define SafeRelease(pObject) if(pObject!=NULL){pObject->Release();pObject=NULL;} class CFont { public: CFont(LPDIRECT3DDEVICE9 d3dd,LPSTR pFontFace); void DrawText(LPSTR pText,float x,float y); void DrawText_1(LPSTR pText,float x,float y); virtual ~CFont(); private: LPDIRECT3DDEVICE9 m_pD3DDevice; LPD3DXFONT m_pFont; LPD3DXFONT m_pFont_1; };