Go to the documentation of this file.
32 static constexpr
short FPS = 60;
49 void onSelfUpdate(std::chrono::nanoseconds dtime)
override;
RAY::Camera::Camera3D _camera
The camera used to render.
Definition: RenderSystem.hpp:26
void setDebug(bool debug)
Definition: RenderSystem.cpp:175
Definition: Window.hpp:32
bool _debugMode
Defines if the debug informations must be displayed or not.
Definition: RenderSystem.hpp:29
RenderSystem & operator=(const RenderSystem &)=delete
A render screen system can't be assigned.
Definition: AnimationsComponent.cpp:9
The main WAL class, it is used to setup and run the ECS.
Definition: Wal.hpp:27
An entity of the WAL's ECS.
Definition: Entity.hpp:20
Definition: Drawable3DComponent.hpp:14
RenderSystem(WAL::Wal &wal, RAY::Window &window, bool debugMode=false)
ctor
Definition: RenderSystem.cpp:26
A basic position component.
Definition: PositionComponent.hpp:13
Vector2f getRescaledPosition(Vector3f &position, const Vector2f &newWinDims)
rescale the drawables position according to new window dimensions
Definition: RenderSystem.cpp:49
void onSelfUpdate(std::chrono::nanoseconds dtime) override
A method called after all entities that this system manage has been updated.
Definition: RenderSystem.cpp:105
~RenderSystem() override=default
Default dtor.
void resizeWindow(Vector2f &newDims)
Definition: RenderSystem.cpp:95
Definition: RenderSystem.hpp:19
A base system of WAL.
Definition: System.hpp:22
void drawRescaledDrawable(RAY::Drawables::ADrawable2D &drawable, const Vector2f &newDims)
rescale the drawables dimensions according to new window dimensions
Definition: RenderSystem.cpp:57
static constexpr short FPS
Window framerate limit.
Definition: RenderSystem.hpp:32
RAY::Window & _window
The window to render on.
Definition: RenderSystem.hpp:23
Entity representing a Camera in 3D space.
Definition: Camera3D.hpp:20
Abstraction of any two-dimensionnal drawable.
Definition: ADrawable2D.hpp:21
void onUpdate(WAL::ViewEntity< CameraComponent, PositionComponent > &entity, std::chrono::nanoseconds dtime) override
Definition: RenderSystem.cpp:165
void drawBoundingBox(const WAL::Entity &entity, const PositionComponent &posComponent, const Drawable3DComponent &drawable) const
Definition: RenderSystem.cpp:35