MQEngine
载入中...
搜索中...
未找到
enginescope.h
浏览该文件的文档.
1
5
#ifndef ENGINESCOPE_H
6
#define ENGINESCOPE_H
7
#include "
./engine.h
"
8
namespace
MQEngine
{
9
class
EngineScope
{
10
public
:
11
EngineScope
(
Application
* application){
12
Engine::s_instance
= &
m_engine
;
13
m_engine
.init(application);
14
}
15
~EngineScope
(){
16
m_engine
.term();
17
Engine::s_instance
=
nullptr
;
18
}
19
private
:
20
Engine
m_engine
;
21
};
22
}
23
#endif
//ENGINESCOPE_H
MQEngine::Application
定义
application.h:33
MQEngine::Engine
定义
engine.h:19
MQEngine::Engine::s_instance
static Engine * s_instance
定义
engine.h:39
MQEngine::EngineScope::EngineScope
EngineScope(Application *application)
定义
enginescope.h:11
MQEngine::EngineScope::m_engine
Engine m_engine
定义
enginescope.h:20
MQEngine::EngineScope::~EngineScope
~EngineScope()
定义
enginescope.h:15
engine.h
MQEngine
定义
application.h:3
MQEngine
Engine
src
core
enginescope.h
制作者
1.14.0