dl
dl
system
dl_engine.h
浏览该文件的文档.
1
10
#pragma once
11
12
#include <string>
13
#include <vector>
14
15
namespace
dl
16
{
18
class
Engine
19
{
20
public
:
22
struct
Param
23
{
24
bool
_setConsoleUtf8
=
true
;
25
bool
_showInfo
=
true
;
26
bool
_useTime
=
true
;
27
bool
_useFreetype
=
true
;
28
bool
_useNet
=
true
;
29
bool
_useAction
=
true
;
30
bool
_usePhysics
=
true
;
31
bool
_useAudio
=
true
;
32
bool
_useScene
=
true
;
33
bool
_useHttp
=
true
;
34
bool
_useLanguage
=
true
;
35
bool
_useMidi
=
true
;
36
bool
_useAngelScript
=
true
;
37
bool
_useLua
=
true
;
38
bool
_test
=
false
;
39
bool
_useDefaultSkybox
=
true
;
// 是否使用默认天空盒
40
std::string
_projectName
=
"project"
;
// 项目名
41
42
// 运行期修改也有效
43
bool
_show3D
=
true
;
// 3d渲染开关
44
};
45
static
void
Init
();
46
static
void
Release
();
47
static
Param
&
GetParamRef
() {
return
_param; }
48
// 命令行参数
49
static
const
std::vector<std::string>&
GetCmd
() {
return
_vecCmd; }
50
static
void
_init_cmd
(
int
argc,
char
** argv);
51
private
:
52
static
Param
_param;
53
static
std::vector<std::string> _vecCmd;
54
};
55
56
}
dl::Engine
引擎配置
定义
dl_engine.h:19
dl::Engine::GetCmd
static const std::vector< std::string > & GetCmd()
定义
dl_engine.h:49
dl::Engine::GetParamRef
static Param & GetParamRef()
定义
dl_engine.h:47
dl::Engine::Release
static void Release()
dl::Engine::Init
static void Init()
dl::Engine::_init_cmd
static void _init_cmd(int argc, char **argv)
dl
定义
dl_array.h:22
dl::Engine::Param
选择性初始化组件
定义
dl_engine.h:23
dl::Engine::Param::_useScene
bool _useScene
定义
dl_engine.h:32
dl::Engine::Param::_useAngelScript
bool _useAngelScript
定义
dl_engine.h:36
dl::Engine::Param::_show3D
bool _show3D
定义
dl_engine.h:43
dl::Engine::Param::_useHttp
bool _useHttp
定义
dl_engine.h:33
dl::Engine::Param::_usePhysics
bool _usePhysics
定义
dl_engine.h:30
dl::Engine::Param::_test
bool _test
定义
dl_engine.h:38
dl::Engine::Param::_useTime
bool _useTime
定义
dl_engine.h:26
dl::Engine::Param::_projectName
std::string _projectName
定义
dl_engine.h:40
dl::Engine::Param::_useFreetype
bool _useFreetype
定义
dl_engine.h:27
dl::Engine::Param::_useNet
bool _useNet
定义
dl_engine.h:28
dl::Engine::Param::_showInfo
bool _showInfo
定义
dl_engine.h:25
dl::Engine::Param::_useLua
bool _useLua
定义
dl_engine.h:37
dl::Engine::Param::_useLanguage
bool _useLanguage
定义
dl_engine.h:34
dl::Engine::Param::_useMidi
bool _useMidi
定义
dl_engine.h:35
dl::Engine::Param::_setConsoleUtf8
bool _setConsoleUtf8
定义
dl_engine.h:24
dl::Engine::Param::_useDefaultSkybox
bool _useDefaultSkybox
定义
dl_engine.h:39
dl::Engine::Param::_useAudio
bool _useAudio
定义
dl_engine.h:31
dl::Engine::Param::_useAction
bool _useAction
定义
dl_engine.h:29
制作者
1.13.1