]> git.lizzy.rs Git - nothing.git/blobdiff - src/ui/console_log.h
Merge pull request #1197 from tsoding/cleanup
[nothing.git] / src / ui / console_log.h
index e354b98aee753cd03c3de2d23f0f51f035d4ec6c..705e93c45749e5041fe7f6c32058de493e2a6726 100644 (file)
@@ -1,21 +1,22 @@
 #ifndef CONSOLE_LOG_H_
 #define CONSOLE_LOG_H_
 
-#include "math/point.h"
+#include "math/vec.h"
+#include "game/camera.h"
 
 typedef struct Console_Log Console_Log;
 
-Console_Log *create_console_log(const Sprite_font *font,
-                                Vec font_size,
+Console_Log *create_console_log(Vec2f font_size,
                                 size_t capacity);
 void destroy_console_log(Console_Log *console_log);
 
-int console_log_render(const Console_Log *console_log,
-                       SDL_Renderer *renderer,
-                       Point position);
+void console_log_render(const Console_Log *console_log,
+                        const Camera *camera,
+                        Vec2f position);
 
 int console_log_push_line(Console_Log *console_log,
                           const char *line,
+                          const char *line_end,
                           Color color);
 
 #endif  // CONSOLE_LOG_H_