]> git.lizzy.rs Git - nothing.git/blob - src/ui/console_log.h
`Lt *` -> `Lt `
[nothing.git] / src / ui / console_log.h
1 #ifndef CONSOLE_LOG_H_
2 #define CONSOLE_LOG_H_
3
4 #include "math/point.h"
5
6 typedef struct Console_Log Console_Log;
7
8 Console_Log *create_console_log(const Sprite_font *font,
9                                 Vec font_size,
10                                 size_t capacity);
11 void destroy_console_log(Console_Log *console_log);
12
13 int console_log_render(const Console_Log *console_log,
14                        SDL_Renderer *renderer,
15                        Point position);
16
17 int console_log_push_line(Console_Log *console_log,
18                           const char *line,
19                           Color color);
20
21 #endif  // CONSOLE_LOG_H_