]> git.lizzy.rs Git - nothing.git/blob - src/platforms.h
(#132) Test sound medium
[nothing.git] / src / platforms.h
1 #ifndef PLATFORMS_H_
2 #define PLATFORMS_H_
3
4 #include "./camera.h"
5 #include "./rect.h"
6
7 typedef struct platforms_t platforms_t;
8 typedef struct SDL_Renderer SDL_Renderer;
9
10 platforms_t *create_platforms_from_stream(FILE *stream);
11 platforms_t *create_platforms_from_file(const char *filename);
12 void destroy_platforms(platforms_t *platforms);
13
14 int platforms_save_to_file(const platforms_t *platforms,
15                            const char *filename);
16
17 int platforms_render(const platforms_t *platforms,
18                      SDL_Renderer *renderer,
19                      const camera_t *camera);
20
21 void platforms_rect_object_collide(const platforms_t *platforms,
22                                    rect_t object,
23                                    int sides[RECT_SIDE_N]);
24
25 #endif  // PLATFORMS_H_