aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/RenderSystem.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-14 15:01:26 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-14 15:01:26 +0100
commit21f5b66d0bcc13d903800adf3bb614e380ff8591 (patch)
treeca7a11c5f94364feeee235527d0c4ad4e5d54706 /src/crepe/system/RenderSystem.h
parentbe1e97bc7a494963ab1567492fafcda99e36f683 (diff)
first part sorted still needing testing
Diffstat (limited to 'src/crepe/system/RenderSystem.h')
-rw-r--r--src/crepe/system/RenderSystem.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/crepe/system/RenderSystem.h b/src/crepe/system/RenderSystem.h
index 70db21a..a83633a 100644
--- a/src/crepe/system/RenderSystem.h
+++ b/src/crepe/system/RenderSystem.h
@@ -3,6 +3,9 @@
#include "api/Camera.h"
#include "System.h"
+#include "api/Sprite.h"
+#include <functional>
+#include <vector>
namespace crepe {
@@ -44,7 +47,10 @@ private:
void update_camera();
//! Renders all active sprites to the screen.
- void render_sprites() const;
+ void render_sprites() ;
+
+ std::vector<std::reference_wrapper<Sprite>>
+ sort(std::vector<std::reference_wrapper<Sprite>> & objs);
/**
* \todo Include color handling for sprites.