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