diff options
Diffstat (limited to 'src/sdl/draw.h')
-rw-r--r-- | src/sdl/draw.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdl/draw.h b/src/sdl/draw.h index 19d8837..1c44320 100644 --- a/src/sdl/draw.h +++ b/src/sdl/draw.h @@ -6,12 +6,15 @@ #include <SDL_ttf.h> #include "../libsok/sok.h" #include "../text/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; @@ -23,6 +26,8 @@ typedef struct { // 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); |