got carried away with some debug logging infrastructure

This commit is contained in:
2026-04-11 11:52:12 -05:00
parent 7b4f04d54c
commit 44a5e2cab9
4 changed files with 61 additions and 12 deletions

View File

@@ -5,7 +5,7 @@
App::App() {
utils::debugPrint(__FUNCTION__, __LINE__, "App constructor.");
utils::debugPrint(__FUNCTION__, __LINE__, "App constructor.", utils::DebugLevel::Trace);
init();
@@ -13,7 +13,7 @@ App::App() {
void App::init() {
utils::debugPrint(__FUNCTION__, __LINE__, "Init app.");
utils::debugPrint(__FUNCTION__, __LINE__, "Init app.", utils::DebugLevel::Trace);
window_ = new Window();
@@ -21,12 +21,11 @@ void App::init() {
int App::run() {
utils::debugPrint(__FUNCTION__, __LINE__, "Run app.");
utils::debugPrint(__FUNCTION__, __LINE__, "Run app.", utils::DebugLevel::Trace);
bool quit = false;
while (!quit) {
// app loop for as long as the window is open
// poll events here
// other threads might be able to change quit to true to auto close
SDL_Event event;