📄 app.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 + -