]> git.lizzy.rs Git - nothing.git/blob - src/game/level/background.h
83bb6517f7fa09823011061539ad10dfe95e50c0
[nothing.git] / src / game / level / background.h
1 #ifndef BACKGROUND_H_
2 #define BACKGROUND_H_
3
4 #include <SDL.h>
5
6 #include "color.h"
7 #include "game/camera.h"
8
9 typedef struct {
10     Color base_color;
11 } Background;
12
13 static inline
14 Background create_background(Color base_color)
15 {
16     Background result = {base_color};
17     return result;
18 }
19
20 int background_render(const Background *background,
21                       const Camera *camera);
22
23 Color background_base_color(const Background *background);
24
25 #endif  // BACKGROUND_H_