]> git.lizzy.rs Git - nothing.git/blob - src/game/level/lava/wavy_rect.h
Make the level_editor_from_file support VERSION 1
[nothing.git] / src / game / level / lava / wavy_rect.h
1 #ifndef WAVY_RECT_H_
2 #define WAVY_RECT_H_
3
4 #include <SDL.h>
5
6 #include "color.h"
7 #include "game/camera.h"
8 #include "math/rect.h"
9
10 typedef struct Wavy_rect Wavy_rect;
11
12 Wavy_rect *create_wavy_rect(Rect rect, Color color);
13 void destroy_wavy_rect(Wavy_rect *wavy_rect);
14
15 int wavy_rect_render(const Wavy_rect *wavy_rect,
16                      const Camera *camera);
17 int wavy_rect_update(Wavy_rect *wavy_rect,
18                      float delta_time);
19
20 Rect wavy_rect_hitbox(const Wavy_rect *wavy_rect);
21
22 #endif  // WAVY_RECT_H_