aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/draw-text.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-15 00:10:46 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-15 00:10:46 -0500
commitdec30a82819f93903004a3e9d46bf22f352942b4 (patch)
tree46b06f9f7de3d0b3a5fa446dc13cf7727d0e87c3 /src/sdl/draw-text.h
parent7fdd6f36c8181115c60b781dc97b71107fb7da65 (diff)
downloadsok-dec30a82819f93903004a3e9d46bf22f352942b4.tar.bz2
sok-dec30a82819f93903004a3e9d46bf22f352942b4.zip
add theme.[hc] and refactor draw.c
Diffstat (limited to 'src/sdl/draw-text.h')
-rw-r--r--src/sdl/draw-text.h22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/sdl/draw-text.h b/src/sdl/draw-text.h
index b58c1c1..f69d46f 100644
--- a/src/sdl/draw-text.h
+++ b/src/sdl/draw-text.h
@@ -1,29 +1,9 @@
#ifndef DRAW_TEXT_H
#define DRAW_TEXT_H
-#include "../libsok/sok.h" // sok_pos_t
-#include <SDL.h> // SDL_Color
+#include "text-style.h"
#include <SDL_ttf.h> // TTF_Font
-typedef enum {
- TEXT_ALIGN_TOP_LEFT,
- TEXT_ALIGN_TOP_CENTER,
- TEXT_ALIGN_TOP_RIGHT,
- TEXT_ALIGN_CENTER_LEFT,
- TEXT_ALIGN_CENTER_CENTER,
- TEXT_ALIGN_CENTER_RIGHT,
- TEXT_ALIGN_BOTTOM_LEFT,
- TEXT_ALIGN_BOTTOM_RIGHT,
- TEXT_ALIGN_BOTTOM_CENTER,
- TEXT_ALIGN_LAST,
-} text_align_t;
-
-typedef struct {
- const text_align_t align;
- const sok_pos_t pad;
- const SDL_Color colors[2];
-} text_style_t;
-
void
draw_text(
SDL_Renderer * const,