gamesection.h

来自「基于引擎基础上开发的三维游戏实例“恐怖之战”游戏者可以自爱三维地形上漫游」· C头文件 代码 · 共 30 行

H
30
字号
// GameSection.h: interface for the CGameSection class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GAMESECTION_H__76357C02_8018_4289_8FE1_12A9E01C7E3E__INCLUDED_)
#define AFX_GAMESECTION_H__76357C02_8018_4289_8FE1_12A9E01C7E3E__INCLUDED_

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

class CGameSection  
{
public:
	CGameSection();
	virtual ~CGameSection();
	virtual void KeyDown(UINT nChar){};
	virtual void KeyUp(UINT nChar){};
	virtual void Reshape(int w, int h){};
	virtual void Init(int=0,int=0){};	
	virtual void End(){};	
	virtual int Draw(){return 0;};	
	virtual void Update(int dt){};	
	int ScreenW;
	int ScreenH;

};

#endif // !defined(AFX_GAMESECTION_H__76357C02_8018_4289_8FE1_12A9E01C7E3E__INCLUDED_)

⌨️ 快捷键说明

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