font.h

来自「C++台球游戏代码」· C头文件 代码 · 共 22 行

H
22
字号
#if !defined(AFX_FONT_H__656AEF3D_35E9_40F5_AFB6_D1BEA7A6BF37__INCLUDED_)
#define AFX_FONT_H__656AEF3D_35E9_40F5_AFB6_D1BEA7A6BF37__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Base.h"

class CFont:public CBase
{
public:
	void DrawText(LPSTR pText,int x,int y,D3DCOLOR rgbFontColor);
	CFont(LPDIRECT3DDEVICE8 pD3DDevice,LPSTR pFontFace,
		  int nHeight,bool fBold,bool fItalic,bool fUnderlined);
	virtual ~CFont();
private:
	LPDIRECT3DDEVICE8 m_pD3DDevice;
	LPD3DXFONT m_pFont;
};

#endif // !defined(AFX_FONT_H__656AEF3D_35E9_40F5_AFB6_D1BEA7A6BF37__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?