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