]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/level_editor/layer_picker.h
(#1075) Add z reordering support to RectLayer
[nothing.git] / src / game / level / level_editor / layer_picker.h
index 511ac5c22366e90660c2a150cefe44198dd4afdd..8fe3fa6ca0bbf14f0975583e21a1d8b0b69f0006 100644 (file)
@@ -1,25 +1,26 @@
 #ifndef LAYER_PICKER_H_
 #define LAYER_PICKER_H_
 
+#include "game/camera.h"
+
 typedef struct RectLayer RectLayer;
-typedef struct Camera Camera;
 
 typedef enum {
-    LAYER_PICKER_BOXES = 0,
+    LAYER_PICKER_BACKGROUND = 0,
+    LAYER_PICKER_PLAYER,
     LAYER_PICKER_PLATFORMS,
-    LAYER_PICKER_BACK_PLATFORMS,
     LAYER_PICKER_GOALS,
-    LAYER_PICKER_PLAYER,
     LAYER_PICKER_LAVA,
-    LAYER_PICKER_REGIONS,
-    LAYER_PICKER_BACKGROUND,
+    LAYER_PICKER_BACK_PLATFORMS,
+    LAYER_PICKER_BOXES,
     LAYER_PICKER_LABELS,
+    LAYER_PICKER_REGIONS,
 
     LAYER_PICKER_N
 } LayerPicker;
 
 int layer_picker_render(const LayerPicker *layer_picker,
-                        Camera *camera);
+                        const Camera *camera);
 int layer_picker_event(LayerPicker *layer_picker,
                        const SDL_Event *event,
                        const Camera *camera,