]> git.lizzy.rs Git - nothing.git/blob - src/ui/console_log.h
(#358) implement console shortcuts for copy, cut, paste, clear
[nothing.git] / src / ui / console_log.h
1 #ifndef CONSOLE_LOG_H_
2 #define CONSOLE_LOG_H_
3
4 #include "math/vec.h"
5 #include "game/camera.h"
6
7 typedef struct Console_Log Console_Log;
8
9 Console_Log *create_console_log(Vec2f font_size,
10                                 size_t capacity);
11 void destroy_console_log(Console_Log *console_log);
12
13 void console_log_render(const Console_Log *console_log,
14                         const Camera *camera,
15                         Vec2f position);
16
17 int console_log_push_line(Console_Log *console_log,
18                           const char *line,
19                           const char *line_end,
20                           Color color);
21
22 void console_log_clear(Console_Log *console_log);
23
24 #endif  // CONSOLE_LOG_H_