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

📄 app.h

📁 本人刚学游戏编程时开发的一个游戏项目《魔幻森林》中的地图编辑器源码
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -