aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/color.h
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-13 08:29:12 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-13 08:29:12 -0500
commitcd0f70f86d1cedffcd1bacf57d9250fdff1f7af3 (patch)
treea7be11a817a89e47700691f5042ba005e756bc4a /src/sdl/color.h
parenta3f788b6a64bbf89342fec2111eb1e1b478db13f (diff)
downloadsok-cd0f70f86d1cedffcd1bacf57d9250fdff1f7af3.tar.bz2
sok-cd0f70f86d1cedffcd1bacf57d9250fdff1f7af3.zip
refactor sok-sdl, add zoom and warp_buf support
Diffstat (limited to 'src/sdl/color.h')
-rw-r--r--src/sdl/color.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sdl/color.h b/src/sdl/color.h
new file mode 100644
index 0000000..5cff762
--- /dev/null
+++ b/src/sdl/color.h
@@ -0,0 +1,20 @@
+#ifndef COLOR_H
+#define COLOR_H
+
+#include <SDL.h>
+
+typedef enum {
+ COLOR_BG,
+ COLOR_BG_WON,
+ COLOR_WALL,
+ COLOR_GOAL,
+ COLOR_HOME,
+ COLOR_HOME_GOAL,
+ COLOR_BOX,
+ COLOR_BOX_GOAL,
+ COLOR_LAST,
+} color_t;
+
+_Bool set_color(SDL_Renderer * const, const color_t);
+
+#endif /* COLOR_H */