diff options
Diffstat (limited to 'src/sdl/draw.h')
-rw-r--r-- | src/sdl/draw.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sdl/draw.h b/src/sdl/draw.h new file mode 100644 index 0000000..304d972 --- /dev/null +++ b/src/sdl/draw.h @@ -0,0 +1,21 @@ +#ifndef DRAW_H +#define DRAW_H + +#include <stddef.h> // size_t +#include <SDL.h> +#include "../libsok/sok.h" +#include "../text/levels.h" + +typedef struct { + SDL_Renderer * const renderer; + const sok_ctx_t * const ctx; + const size_t * const level_num; + const level_t *level; + const size_t * const zoom; + + sok_pos_t render_ofs; +} draw_ctx_t; + +void draw(draw_ctx_t * const); + +#endif /* DRAW_H */ |