From aee00e006a2f3b2e154ed9db1fe08f18bdbc2446 Mon Sep 17 00:00:00 2001 From: WSAL Evan Date: Fri, 7 Nov 2025 09:24:58 -0500 Subject: [PATCH] Added window defaults as extern variables --- include/wv/app/App.h | 4 ++++ src/app/App.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wv/app/App.h b/include/wv/app/App.h index c410361..508fd54 100644 --- a/include/wv/app/App.h +++ b/include/wv/app/App.h @@ -2,6 +2,10 @@ namespace WillowVox { + extern const char* appWindowName; + extern int appDefaultWindowX; + extern int appDefaultWindowY; + class App { public: diff --git a/src/app/App.cpp b/src/app/App.cpp index b5afb11..b9158f0 100644 --- a/src/app/App.cpp +++ b/src/app/App.cpp @@ -16,7 +16,7 @@ namespace WillowVox Logger::Log("Using WillowVox Engine"); Renderer::Init(); - Window::InitWindow(1280, 720, "WillowVox Engine"); + Window::InitWindow(appDefaultWindowX, appDefaultWindowY, appWindowName); auto& window = Window::GetInstance(); window.SetBackgroundColor(0.1f, 0.1f, 0.1f, 1.0f);