feat(renderer): add --no-debug flag to disable OpenGL debug output

This commit is contained in:
2026-07-07 20:29:01 +08:00
parent f0e339822d
commit 8259b211ea
4 changed files with 22 additions and 11 deletions

View File

@@ -18,6 +18,7 @@ public:
int port = 25530;
std::string ip{"127.0.0.1"};
std::string player{"Unknown"};
bool debug_on = true;
};
App();

View File

@@ -22,7 +22,7 @@ public:
const TextureManager& texture_manager, DevPanel& dev_panel);
~Renderer();
void hot_reload();
void init();
void init(bool debug_on);
const Shader& get_shader(const std::string& name) const;
void render();
void update(float delta_time);