add abs to vector

This commit is contained in:
Askou
2021-06-15 16:45:58 +02:00
parent 2b99c5e0de
commit 6512cd76cd
4 changed files with 22 additions and 13 deletions
+3 -2
View File
@@ -6,6 +6,7 @@
#include "Component/Renderer/CameraComponent.hpp"
#include "Component/Position/PositionComponent.hpp"
#include "Component/Movable/MovableComponent.hpp"
#include "Component/Renderer/Drawable3DComponent.hpp"
#include "System/System.hpp"
#include "Camera/Camera2D.hpp"
@@ -14,7 +15,7 @@
namespace BBM
{
class RenderSystem : public WAL::System<CameraComponent, PositionComponent>
class RenderSystem : public WAL::System<CameraComponent, MovableComponent, PositionComponent>
{
//! @brief The window to render on
@@ -35,7 +36,7 @@ namespace BBM
void onSelfUpdate() override;
//! @inherit
void onUpdate(WAL::ViewEntity<CameraComponent, PositionComponent> &entity, std::chrono::nanoseconds dtime) override;
void onUpdate(WAL::ViewEntity<CameraComponent, MovableComponent, PositionComponent> &entity, std::chrono::nanoseconds dtime) override;
//! @param debug true if debug mode should be enabled
void setDebug(bool debug);