aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/system/RenderSystem.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-20 13:39:44 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2024-11-20 13:39:44 +0100
commitc6d7623cc0bc17aa171bc5078f2f36c15be28683 (patch)
tree29a377248db09c59b2c290eec9ea5d701a989592 /src/crepe/system/RenderSystem.h
parent9836b2225d11b629349e7abd6afcc1e4d41aa4f9 (diff)
implemented feedback from @lonkaars
Diffstat (limited to 'src/crepe/system/RenderSystem.h')
-rw-r--r--src/crepe/system/RenderSystem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/crepe/system/RenderSystem.h b/src/crepe/system/RenderSystem.h
index 8914b96..57b9c73 100644
--- a/src/crepe/system/RenderSystem.h
+++ b/src/crepe/system/RenderSystem.h
@@ -41,6 +41,12 @@ private:
//! Renders all active sprites to the screen.
void render_sprites();
+ /**
+ * \brief sort a vector sprite objects with
+ *
+ * \param objs the vector that will do a sorting algorithm on
+ * \return returns a sorted reference vector
+ */
std::vector<std::reference_wrapper<Sprite>>
sort(std::vector<std::reference_wrapper<Sprite>> & objs);