diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-11 15:46:17 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-11 15:46:17 +0100 |
commit | 045c263f5bc432ff0758dd0928e4a0f5e5eed85d (patch) | |
tree | 7eec84c0267b14475608baae3c919d11779c63a6 /src/crepe/system/RenderSystem.h | |
parent | e980f88c08e05d3c3d0ae7ff7422ec9e686ecfa4 (diff) |
updated the code so that get_events() calculates pixel units to game units
Diffstat (limited to 'src/crepe/system/RenderSystem.h')
-rw-r--r-- | src/crepe/system/RenderSystem.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/crepe/system/RenderSystem.h b/src/crepe/system/RenderSystem.h index de26aa8..8e61072 100644 --- a/src/crepe/system/RenderSystem.h +++ b/src/crepe/system/RenderSystem.h @@ -2,8 +2,6 @@ #include <cmath> -#include "facade/SDLContext.h" - #include "System.h" #include "types.h" @@ -37,7 +35,7 @@ private: void present_screen(); //! Updates the active camera used for rendering. - SDLContext::CameraValues & update_camera(); + void update_camera(); //! Renders the whole screen void render(); @@ -52,8 +50,7 @@ private: * constructor is now protected i cannot make tmp inside * \return true if particles have been rendered */ - bool render_particle(const Sprite & sprite, const SDLContext::CameraValues & cam, - const double & scale); + bool render_particle(const Sprite & sprite, const double & scale); /** * \brief renders a sprite with a Transform component on the screen @@ -61,8 +58,7 @@ private: * \param sprite the sprite component that holds all the data * \param tm the Transform component that holds the position,rotation and scale */ - void render_normal(const Sprite & sprite, const SDLContext::CameraValues & cam, - const Transform & tm); + void render_normal(const Sprite & sprite, const Transform & tm); /** * \brief sort a vector sprite objects with |