This commit is contained in:
Kueffner, Maximilian
2025-03-13 12:00:14 +01:00
parent 0d62ce3e0d
commit b9955077d6
5 changed files with 199 additions and 2 deletions
+36
View File
@@ -0,0 +1,36 @@
#pragma once
#include <GLFW/glfw3.h>
#include <cstdio>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
namespace ui
{
enum LogLevelSelection
{
Debug = 0,
Info = 1,
Warning = 2,
Error = 3
};
class AppGLFW
{
public:
AppGLFW();
int Run();
private:
LogLevelSelection log_level_ = static_cast<LogLevelSelection>(0);
GLFWwindow* window = nullptr;
ImGuiWindowFlags window_flags = 0;
};
static void glfw_error_callback(int error, const char* description)
{
fprintf(stderr, "GLFW Error %d: %s\n", error, description);
}
} // namespace ui