app.h

来自「本人刚学游戏编程时开发的一个游戏项目《魔幻森林》中的地图编辑器源码」· C头文件 代码 · 共 43 行

H
43
字号
#pragma once
#include "windows.h"
#include "Listener.h"
#include <CEGUI\CEGUI.h>
#include "OgreCEGUIRenderer.h"
#include "OgreCEGUIResourceProvider.h"
#include "exampleapplication.h"
#include "Terrain.h"
#include "Tree.h"


class CApp :
	public ExampleApplication
{
public:
	CApp(void);
	~CApp(void);
	void load();
	void createScene();
	void createFrameListener();
	void chooseSceneManager();
	void setCEGUI(void);
	void setupButtonEvent();
	//游戏按钮函数
	bool buttonStart(const CEGUI::EventArgs& e);
	bool buttonExit(const CEGUI::EventArgs& e);
	bool buttonYesExit(const CEGUI::EventArgs& e);
	bool buttonNOExit(const CEGUI::EventArgs& e);
    //地编按钮函数
	bool buttonEditor(const CEGUI::EventArgs& e);
	bool buttonMenu(const CEGUI::EventArgs& e);
	bool buttonSave(const CEGUI::EventArgs& e);
	bool buttonLoad(const CEGUI::EventArgs& e);
	bool buttonSelect(const CEGUI::EventArgs& e);
	bool buttonExit2(const CEGUI::EventArgs& e);
private:
	CEGUI::OgreCEGUIRenderer* mGUIRenderer;
	CEGUI::System * mGUISystem;
	bool m_bIsShowExit;
	CListener* m_pListener;
	
};

⌨️ 快捷键说明

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