#ifndef DRAW_H #define DRAW_H #include // size_t #include #include #include "../core/sok.h" #include "../levels/levels.h" #include "theme.h" // arbitrary #define MAX_SPRITES 32 typedef struct { SDL_Renderer * const renderer; // FIXME: move to theme eventually SDL_Texture *sprites[MAX_SPRITES]; TTF_Font *font; const sok_ctx_t * const ctx; const size_t * const level_num; const level_t *level; const size_t * const zoom; // render offset int render_ofs_x, render_ofs_y; Uint32 ticks; const theme_t * const theme; } draw_ctx_t; void draw(draw_ctx_t * const); #endif /* DRAW_H */