dl
dl_engine.h
浏览该文件的文档.
1
10#pragma once
11
12#include <string>
13
14namespace dl
15{
17class Engine
18{
19public:
21 struct Param
22 {
23 bool _setConsoleUtf8 = true;
24 bool _showInfo = true;
25 bool _useTime = true;
26 bool _useFreetype = true;
27 bool _useNet = true;
28 bool _useAction = true;
29 bool _usePhysics = true;
30 bool _useAudio = true;
31 bool _useScene = true;
32 bool _useHttp = true;
33 bool _useLanguage = true;
34 bool _useMidi = true;
35 bool _useAngelScript = true;
36 bool _useLua = true;
37 bool _test = true;
38 std::string _projectName = "project"; // 项目
39 };
40 static void Init();
41 static void Release();
42 static Param& GetParamRef() { return _param; }
43private:
44 static Param _param;
45};
46
47}
引擎配置
static Param & GetParamRef()
static void Release()
static void Init()
选择性初始化组件
std::string _projectName