www.pudn.com > 3D_Tank.rar > GameFont.h


#ifndef __GAMEFONT_H__ 
#define __GAMEFONT_H__ 
 
#include  
#include "ComPtr.h" 
 
class CGameFont 
{ 
public: 
	CGameFont(); 
	~CGameFont(); 
	VOID InitFont(IDirect3DDevice9 *device, 
				  UINT height = 50, UINT width = 12, UINT weight = 500);  
	VOID DrawString(LPCTSTR lpString, int left = 0, int top = 0); 
 
private: 
	D3DXFONT_DESC		m_FontDesc; 
	D3DCOLOR			m_FontColor; 
	CComPtr	m_pFont; 
 
	UINT				m_height; 
 
}; 
 
#endif	//GameFont