BMC Engine v1.0.0
An open-source game engine powered by C and C++
Loading...
Searching...
No Matches
DebugUtil.h
1#ifndef DEBUG_UTIL_H
2#define DEBUG_UTIL_H
3
4#include "../../classes/lang/Translator.h"
5#include "../../main-class.h"
6
7#include "imgui.h"
8#include "imgui_impl_glfw.h"
9#include "imgui_impl_opengl3.h"
10
11#include "glad/glad.h"
12#include "GLFW/glfw3.h"
13
18class DebugUtil {
19public:
24 DebugUtil(GLFWwindow* window);
25
29 ~DebugUtil();
30
34 void draw();
35
36private:
37 // buttons
38 bool resetScale = false;
39
40 // other
41 GLFWwindow* window;
42 void processVars();
43};
44
49public:
53 inline static bool useAntiAliasing = true;
54
58 inline static float renderScale = 1.0f;
59
63 inline static float camSpeed = 0.012f;
64
68 inline static float camSensitivity = 365.5f;
69
73 inline static float camFOV = 120.0f;
74};
75
76#endif // DEBUG_UTIL_H
Definition DebugUtil.h:48
static bool useAntiAliasing
Definition DebugUtil.h:53
static float camSensitivity
Definition DebugUtil.h:68
static float camFOV
Definition DebugUtil.h:73
static float camSpeed
Definition DebugUtil.h:63
static float renderScale
Definition DebugUtil.h:58
Definition DebugUtil.h:18
DebugUtil(GLFWwindow *window)
Definition DebugUtil.cpp:3
void draw()
Definition DebugUtil.cpp:15
~DebugUtil()
Definition DebugUtil.cpp:8