]> git.lizzy.rs Git - nothing.git/blob - src/ui/log.h
(#457) script/ -> ebisp/
[nothing.git] / src / ui / log.h
1 #ifndef LOG_H_
2 #define LOG_H_
3
4 #include "math/point.h"
5
6 typedef struct Log Log;
7
8 Log *create_log(const Sprite_font *font,
9                 Vec font_size,
10                 size_t capacity);
11 void destroy_log(Log *log);
12
13 int log_render(const Log *log,
14                SDL_Renderer *renderer,
15                Point position);
16
17 int log_push_line(Log *log,
18                   const char *line,
19                   Color color);
20
21 #endif  // LOG_H_