aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/RenderSystem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/system/RenderSystem.h')
-rw-r--r--src/crepe/system/RenderSystem.h14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/crepe/system/RenderSystem.h b/src/crepe/system/RenderSystem.h
index 6643084..8841f72 100644
--- a/src/crepe/system/RenderSystem.h
+++ b/src/crepe/system/RenderSystem.h
@@ -25,13 +25,7 @@ public:
* This method is called to perform all rendering operations for the current game frame.
*/
void update() override;
-
-
- RenderSystem(const RenderSystem &) = delete;
- RenderSystem(RenderSystem &&) = delete;
- RenderSystem & operator=(const RenderSystem &) = delete;
- RenderSystem & operator=(RenderSystem &&) = delete;
-
+
private:
//! Clears the screen in preparation for rendering.
void clear_screen() const;
@@ -43,7 +37,7 @@ private:
void update_camera();
//! Renders the whole screen
- void render();
+ void render() const;
/**
* \brief Renders all the particles on the screen from a given sprite.
@@ -52,7 +46,7 @@ private:
* \param tm the Transform component for scale
* \return true if particles have been rendered
*/
- bool render_particle(const Sprite &, const double & scale);
+ bool render_particle(const Sprite & sprite, const double & scale) const;
/**
* \brief renders a sprite with a Transform component on the screen
@@ -60,7 +54,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 &, const Transform & tm);
+ void render_normal(const Sprite & sprite, const Transform & tm) const;
/**
* \todo Include color handling for sprites.