#ifndef BACKGROUND_H_
#define BACKGROUND_H_
-#include <SDL2/SDL.h>
+#include <SDL.h>
#include "color.h"
-#include "game/level/camera.h"
+#include "game/camera.h"
-typedef struct background_t background_t;
+typedef struct {
+ Color base_color;
+} Background;
-background_t *create_background(color_t base_color);
-void destroy_background(background_t *background);
+static inline
+Background create_background(Color base_color)
+{
+ Background result = {base_color};
+ return result;
+}
-int background_render(const background_t *background,
- SDL_Renderer *renderer,
- const camera_t *camera);
+int background_render(const Background *background,
+ const Camera *camera);
+
+Color background_base_color(const Background *background);
#endif // BACKGROUND_H_