]> git.lizzy.rs Git - nothing.git/blob - src/game/level/lava/wavy_rect.h
Merge pull request #1055 from tsoding/1045
[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 typedef struct LineStream LineStream;
12
13 Wavy_rect *create_wavy_rect(Rect rect, Color color);
14 Wavy_rect *create_wavy_rect_from_line_stream(LineStream *line_stream);
15 void destroy_wavy_rect(Wavy_rect *wavy_rect);
16
17 int wavy_rect_render(const Wavy_rect *wavy_rect,
18                      const Camera *camera);
19 int wavy_rect_update(Wavy_rect *wavy_rect,
20                      float delta_time);
21
22 Rect wavy_rect_hitbox(const Wavy_rect *wavy_rect);
23
24 #endif  // WAVY_RECT_H_