]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/platforms.h
Make platforms a transparent entity
[nothing.git] / src / game / level / platforms.h
index a3c8cb57b6d43436f4010daa571c7938bc66625b..112e98ee5283d8d00f5b79d4c0c137be2899b00c 100644 (file)
@@ -6,11 +6,16 @@
 #include "game/camera.h"
 #include "math/rect.h"
 
-typedef struct Platforms Platforms;
 typedef struct RectLayer RectLayer;
 
-Platforms *create_platforms_from_rect_layer(const RectLayer *layer);
-void destroy_platforms(Platforms *platforms);
+typedef struct {
+    Rect *rects;
+    Color *colors;
+    size_t rects_size;
+} Platforms;
+
+Platforms create_platforms_from_rect_layer(const RectLayer *layer);
+void destroy_platforms(Platforms platforms);
 
 int platforms_render(const Platforms *platforms,
                      const Camera *camera);