⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testingapplication.h

📁 real-time(实时渲染技术DirectX)13-18
💻 H
字号:
/***************************************************************
* TestingApplication.h                                         *
*                                                              *
* This file contains the header information for the class      *
* derived from CHostApplication.  This new class will          *
* demonstrate the basics of alpha and depth testing and alpha  *
* blending.  For this file to                                  *
* compile correctly, the path for the DX include files must be *
* added to your path.                                          *
*                                                              *
* Changes:                                                     *
*	*  None                                                    *
***************************************************************/
#include "Application.h"

class CTestingApplication : public CHostApplication  
{
public:
	void SetupDevice();
	BOOL CreateGeometry();
	void DestroyGeometry();
	
	CTestingApplication();
	virtual ~CTestingApplication();

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

	//Override PreRender so that we can change the clear color
	virtual void PreRender();

	LPDIRECT3DVERTEXBUFFER8 m_pVertexBuffer;

	//Our two texture objects
	LPDIRECT3DTEXTURE8 m_pFrontTexture;
	LPDIRECT3DTEXTURE8 m_pBackTexture;

	//These matrices are reusable transformation matrices
	D3DXMATRIX m_WorldMatrix;
	D3DXMATRIX m_ViewMatrix;
	D3DXMATRIX m_ProjectionMatrix;
};

⌨️ 快捷键说明

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