blob: 304d9727a0e45e5bbeb3e44e1c523e5ee8f5f918 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 */
 |