ScummVM API documentation
dt-internal.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef QDENGINE_DT_INTERNAL_H
23 #define QDENGINE_DT_INTERNAL_H
24 
25 namespace QDEngine {
26 
27 typedef struct ImGuiImage {
28  ImTextureID id;
29  int width;
30  int height;
31 } ImGuiImage;
32 
33 enum {
34  kDisplayQDA,
35  kDisplayTGA,
36 };
37 
38 struct FileTree {
39  Common::Path path;
40  Common::String name;
42  int id;
43 
44  FileTree(Common::Path *p, Common::String n, bool node, int i);
45  FileTree() { id = 0; }
46 };
47 
48 typedef struct ImGuiState {
49  bool _showArchives = false;
50  bool _showSceneObjects = false;
51  bool _showScenePersonages = false;
52 
54 
55  Common::Path _fileToDisplay;
56  Common::String _objectToDisplay;
57 
58  int _qdaToDisplayFrame = -1;
59  int _qdaToDisplayFrameCount = 0;
60  bool _qdaIsPlaying = false;
61  int _qdaNextFrameTimestamp = 0;
62 
63  ImGuiTextFilter _nameFilter;
64 
65  FileTree _files;
66 
67  int _displayMode = -1;
68 } ImGuiState;
69 
70 extern ImGuiState *_state;
71 
72 }
73 
74 #endif // QDENGINE_DT_INTERNAL_H
Definition: str.h:59
Definition: array.h:52
Definition: path.h:52
Definition: dt-internal.h:38
Definition: hashmap.h:85
Базовый класс для игровых ресурсов.
Definition: console.h:28
Definition: dt-internal.h:27
Definition: imgui.h:2653
Definition: dt-internal.h:48