glfont.h

来自「代码实现物体的运动、键盘控制视角、3D图形的组合」· C头文件 代码 · 共 31 行

H
31
字号
// GLFont.h: interface for the CGLFont class.

//////////////////////////////////////////////////////////////////////////
// 2004.8.8 顶峰
// QQ: 68808247
// Email: lidingfeng@163.com
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GLFONT_H__88F1F000_50F5_452A_B95E_60ED83712FA5__INCLUDED_)
#define AFX_GLFONT_H__88F1F000_50F5_452A_B95E_60ED83712FA5__INCLUDED_

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

class CGLFont  
{
public:
	void entext(float x,float y, LPCTSTR str,HFONT hFont,float r,float g,float b);
	void c3dtext(LPCTSTR str,HFONT hFont,float z);
	void Printfc3d(CString strText,HFONT hFont,float z=0.05f);
	void Printftext(int x, int y, LPCTSTR lpszText,HFONT hFont);
	void settext(float x,float y,CString str,HFONT Font,float r,float g,float b);
	CGLFont();
	virtual ~CGLFont();
protected:
	HFONT hFont; //字体句柄
};

#endif // !defined(AFX_GLFONT_H__88F1F000_50F5_452A_B95E_60ED83712FA5__INCLUDED_)

⌨️ 快捷键说明

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