📄 techniqueapplication.h
字号:
/***************************************************************
* TechniqueApplication.h *
* *
* This file contains the header information for the class *
* derived from CHostApplication. This new class will *
* serve as a base for all the techniques. 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 CTechniqueApplication : public CHostApplication
{
public:
HRESULT CreateShaders();
HRESULT ExtractBuffers();
void SetupDevice();
HRESULT LoadMesh();
CTechniqueApplication();
virtual ~CTechniqueApplication();
virtual BOOL PostInitialize();
virtual BOOL PreTerminate();
virtual BOOL PreReset();
virtual BOOL PostReset();
virtual void Render();
virtual void PreRender();
LPD3DXMESH m_pMesh;
LPDIRECT3DVERTEXBUFFER8 m_pMeshVertexBuffer;
LPDIRECT3DINDEXBUFFER8 m_pMeshIndexBuffer;
LPDIRECT3DTEXTURE8 m_pNormalMap;
LPDIRECT3DTEXTURE8 m_pToonMap;
DWORD m_ToonShader;
DWORD m_ToonPixelShader;
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -