]> git.lizzy.rs Git - nothing.git/blob - src/ui/console.h
Merge pull request #399 from tsoding/395
[nothing.git] / src / ui / console.h
1 #ifndef CONSOLE_H_
2 #define CONSOLE_H_
3
4 #include <SDL2/SDL.h>
5
6 typedef struct Console Console;
7 typedef struct Level Level;
8 typedef struct Sprite_font Sprite_font;
9 typedef struct Camera Camera;
10
11 Console *create_console(Level *level,
12                         const Sprite_font *font);
13 void destroy_console(Console *console);
14
15 int console_handle_event(Console *console,
16                          const SDL_Event *event);
17
18 int console_render(const Console *console,
19                    SDL_Renderer *renderer);
20
21 int console_update(Console *console,
22                    float delta_time);
23
24 void console_slide_down(Console *console);
25
26 #endif  // CONSOLE_H_