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

📄 vertexapplication.h

📁 real-time(实时渲染技术DirectX)6-12
💻 H
字号:
/***************************************************************
* VertexApplication.h                                          *
*                                                              *
* This file contains the header information for the class      *
* derived from CHostApplication.  This new class will          *
* demonstrate the basics of vertex buffers.  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 CVertexApplication : public CHostApplication  
{
public:
	BOOL FillVertexBuffer();
	BOOL CreateVertexBuffer();
	void DestroyVertexBuffer();
	CVertexApplication();
	virtual ~CVertexApplication();

	//This function will be called after the D3D object is 
	//created.  Here we'll actually create the vertex buffer.
	virtual BOOL PostInitialize();

	//This function will clean up the vertex buffer prior to 
	//the destruction of the device
	virtual BOOL PreTerminate();

	//These functions will ensure that lost vertex buffers are
	//recreated once the device is reset
	virtual BOOL PreReset();
	virtual BOOL PostReset();

	//This function will actually render the data.
	virtual void Render();

	//This is the pointer to our vertex buffer
	LPDIRECT3DVERTEXBUFFER8 m_pVertexBuffer;
};

⌨️ 快捷键说明

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