]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/background.h
Merge pull request #1209 from isidentical/console-shortcuts
[nothing.git] / src / game / level / background.h
index 65a516b962882a2675bbfbbb39f125feba5ead7e..83bb6517f7fa09823011061539ad10dfe95e50c0 100644 (file)
@@ -1,21 +1,25 @@
 #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 LineStream LineStream;
+typedef struct {
+    Color base_color;
+} Background;
 
-Background *create_background(Color base_color);
-Background *create_background_from_line_stream(LineStream *line_stream);
-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_