From dec30a82819f93903004a3e9d46bf22f352942b4 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Tue, 15 Jan 2019 00:10:46 -0500 Subject: add theme.[hc] and refactor draw.c --- src/sdl/draw.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sdl/draw.h') 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 #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); -- cgit v1.2.3