add debug option in renderer system constructor

This commit is contained in:
arthur.jamet
2021-06-05 13:46:27 +02:00
parent 948b9b42c2
commit 9b6cbaf948
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -13,7 +13,7 @@
namespace BBM
{
RenderSystem::RenderSystem(WAL::Wal &wal, RAY::Window &window)
RenderSystem::RenderSystem(WAL::Wal &wal, RAY::Window &window, bool debugMode)
: WAL::System({
typeid(CameraComponent),
typeid(PositionComponent)
@@ -21,7 +21,7 @@ namespace BBM
_wal(wal),
_window(window),
_camera(Vector3f(), Vector3f(), Vector3f(0, 1, 0), 50, CAMERA_PERSPECTIVE),
_debugMode(true)
_debugMode(debugMode)
{
this->_window.setFPS(this->FPS);
}
+1 -1
View File
@@ -37,7 +37,7 @@ namespace BBM
void onUpdate(WAL::Entity &entity, std::chrono::nanoseconds dtime) override;
//! @brief ctor
RenderSystem(WAL::Wal &wal, RAY::Window &window);
RenderSystem(WAL::Wal &wal, RAY::Window &window, bool debugMode = true);
//! @brief Default copy ctor
RenderSystem(const RenderSystem &) = default;
//! @brief Default dtor