Added (DEBUG) In Window title and Perf. Stats

This commit is contained in:
OusmBlueNinja 2025-01-04 22:39:32 -06:00
parent 71659be98e
commit 2095152251
2 changed files with 12 additions and 2 deletions

View File

@ -112,7 +112,12 @@ void PerformanceWindow::Show(float fps, float ms)
ImGui::Begin("Performance##performance");
// A color-coded main header
#ifdef DEBUG
ImGui::TextColored(ImVec4(1.0f, 0.8f, 0.2f, 1.0f), "Performance Stats (DEBUG)");
#else
ImGui::TextColored(ImVec4(1.0f, 0.8f, 0.2f, 1.0f), "Performance Stats");
#endif
ImGui::Separator();
ImGui::Spacing();

View File

@ -12,9 +12,14 @@ int main()
// Small error where the constuctor would crash
MyEngine engine;
DEBUG_PRINT("[OK] Creating Global Engine ");
#ifdef DEBUG
std::string title = "Tesseract Engine (DEBUG)";
#else
std::string title = "Tesseract Engine";
#endif
if (!engine.Init(1280, 720, "Tesseract Engine"))
if (!engine.Init(1280, 720, title))
{
fprintf(stderr, "Failed to initialize engine.\n");
return 1;