]> git.lizzy.rs Git - nothing.git/blobdiff - src/game/level/background.h
(#639) Make rigid bodies interact with platforms
[nothing.git] / src / game / level / background.h
index 799dd9f5d4e5e93ad516bfda0931aba0d1933c25..65a516b962882a2675bbfbbb39f125feba5ead7e 100644 (file)
@@ -4,18 +4,18 @@
 #include <SDL2/SDL.h>
 
 #include "color.h"
-#include "game/level/camera.h"
+#include "game/camera.h"
 
-typedef struct background_t background_t;
+typedef struct Background Background;
+typedef struct LineStream LineStream;
 
-background_t *create_background(color_t base_color);
-void destroy_background(background_t *background);
+Background *create_background(Color base_color);
+Background *create_background_from_line_stream(LineStream *line_stream);
+void destroy_background(Background *background);
 
-int background_render(const background_t *background,
-                      SDL_Renderer *renderer,
-                      const camera_t *camera);
+int background_render(const Background *background,
+                      Camera *camera);
 
-void background_move_to(background_t *background,
-                        vec_t position);
+void background_toggle_debug_mode(Background *background);
 
 #endif  // BACKGROUND_H_