]> git.lizzy.rs Git - nothing.git/blob - src/dying_rect.h
(#132) Test sound medium
[nothing.git] / src / dying_rect.h
1 #ifndef DYING_RECT_H_
2 #define DYING_RECT_H_
3
4 #include "./rect.h"
5 #include "./color.h"
6 #include "./camera.h"
7
8 typedef struct SDL_Renderer SDL_Renderer;
9 typedef struct dying_rect_t dying_rect_t;
10
11 dying_rect_t *create_dying_rect(rect_t rect,
12                                 color_t color,
13                                 Uint32 duration);
14 void destroy_dying_rect(dying_rect_t *dying_rect);
15
16 int dying_rect_render(const dying_rect_t *dying_rect,
17                       SDL_Renderer *renderer,
18                       const camera_t *camera);
19 int dying_rect_update(dying_rect_t *dying_rect,
20                       Uint32 delta_time);
21
22 int dying_rect_is_dead(const dying_rect_t *dying_rect);
23
24 #endif  // DYING_RECT_H_