Add custom logging system and improve state logging. Refactor main.cpp and add custom logging system

This commit is contained in:
2026-05-26 23:26:28 +03:00
parent b7954e4234
commit fac5b95a82
4 changed files with 69 additions and 15 deletions
+21
View File
@@ -0,0 +1,21 @@
#pragma once
#include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <mutex>
#include <cstdarg>
#include <raylib.h>
// Global colors
Color Green = Color{ 38, 185, 154, 255 };
Color Dark_Green = Color{ 20, 160, 133, 255 };
Color Light_Green = Color{ 129, 204, 184, 255 };
Color Yellow = Color{ 243, 213, 91, 255 };
// DevLog buffering & function prototype
std::vector<std::string> logHistory;
std::mutex logMutex;
void CustomLogCallback(int logLevel, const char* text, va_list args);