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