font.h
来自「对游戏编程感兴趣的 朋友可以 下载下来看看 对DX讲解的很很详细」· C头文件 代码 · 共 26 行
H
26 行
// Font.h: interface for the CFont class.
//
//////////////////////////////////////////////////////////////////////
#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 rgbFontColour);
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 + -
显示快捷键?