-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathModuleEditor.h
More file actions
71 lines (58 loc) · 1.57 KB
/
ModuleEditor.h
File metadata and controls
71 lines (58 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef __ModuleEditor_H__
#define __ModuleEditor_H__
#include "Module.h"
#include <vector>
class ModuleEditor : public Module
{
public:
//Constructor
ModuleEditor(Application* app, bool start_enabled = true);
//Destructor
~ModuleEditor();
bool Init();
bool CleanUp();
update_status PreUpdate(float dt);
update_status Update(float dt);
void Draw();
private:
bool capturing_mouse = false;
bool capturing_keyboard = false;
bool show_test_window;
bool show_hierarchy_window;
bool show_info_window;
bool show_config_window;
bool show_console_window;
bool show_about_window;
bool show_inspector_window;
public:
uint fps_and_ms_log_size;
std::vector<float> fps_log;
std::vector<float> ms_log;
void UpdateFpsLog(float new_fps);
void UpdateMsLog(float new_ms);
char app_name;
char organization_name;
bool vsync;
bool fullscreen;
bool resizable;
bool borderless;
bool full_desktop;
float brightness;
int width;
int height;
GameObject* game_object_selected = nullptr;
bool new_item_clicked = false;
void CaptureInput(SDL_Event* input) const;
bool CapturingMouse() const;
bool CapturingKeyboard() const;
void SetWireframeTypeDrawToChilds(GameObject* root, GameObject::WireframeTypeDraw wireframe_type_draw);
private:
void ShowHierarchyWindow(bool* show_hierarchy);
void ShowInspectorWindow(bool* show_inspector);
void ShowInfoWindow(bool* show_window);
void ShowConsoleWindow(bool* show_window);
void ShowConfigWindow(bool* show_window);
void AddGameObjectsToHierarchy(GameObject* game_object);
void CheckClickInHierarchy(GameObject* game_object);
};
#endif