summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-02 13:12:01 +0100
committerskal <pascal.massimino@gmail.com>2026-02-02 13:12:01 +0100
commitd1d87447ae44d85b15e748c5b1cc8ccd310f8740 (patch)
tree215852cc15df71129b66f0d5c36ccf46930c8df7 /src/main.cc
parente0a92d8c7b5dea290155dd17784686fc9e95a029 (diff)
feat(3d): Add scaffolding for visual debugging (Task #18a)
- Added 'src/3d/visual_debug.h/cc' to implement wireframe rendering. - Integrated VisualDebug into Renderer3D with a static global toggle. - Added '--debug' command-line option to 'demo64k' and 'test_3d_render' to enable wireframes. - Updated 'src/gpu/effects/hybrid_3d_effect.h' to expose the debug setter (reverted later as static method used). - Ensured full cross-platform compatibility (native and Windows) for the new debug module. - All code guarded by STRIP_ALL for final release.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.cc b/src/main.cc
index 2ece549..406b900 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -7,6 +7,7 @@
#include "audio/synth.h"
#include "generated/assets.h" // Include generated asset header
#include "gpu/gpu.h"
+#include "3d/renderer.h"
#include "platform.h"
#include "util/math.h"
#include <GLFW/glfw3.h>
@@ -149,6 +150,8 @@ int main(int argc, char** argv) {
width_ptr = &custom_width;
height_ptr = &custom_height;
}
+ } else if (strcmp(argv[i], "--debug") == 0) {
+ Renderer3D::SetDebugEnabled(true);
}
}
#else