basictextapplication.h

来自「real-time(实时渲染技术DirectX)37-40」· C头文件 代码 · 共 36 行

H
36
字号
/***************************************************************
* BasicTextApplication.h                                       *
*                                                              *
* This file contains the header information for the class      *
* derived from CHostApplication.  This new class will          *
* demonstrate the basics of drawing text.  For this file to    *
* compile correctly, the path for the DX include files must be *
* added to your path.                                          *
*                                                              *
* Changes:                                                     *
*	*  None                                                    *
***************************************************************/
#include "Application.h"
#include "DirectXFont.h"

class CBasicTextApplication : public CHostApplication  
{
public:
	void DestroyTextObjects();
	void CreateTextObjects();
	CBasicTextApplication();
	virtual ~CBasicTextApplication();

	virtual BOOL PostInitialize();
	virtual BOOL PreTerminate();
	virtual BOOL PreReset();
	virtual BOOL PostReset();
	virtual void Render();

	//The font
	CDirectXFont m_Font;

	//A vertex buffer for a static text buffer
	LPDIRECT3DVERTEXBUFFER8 m_pStaticTextBuffer;
};

⌨️ 快捷键说明

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