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

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);
}