summaryrefslogtreecommitdiff
path: root/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'color.h')
-rw-r--r--color.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/color.h b/color.h
new file mode 100644
index 0000000..1297d69
--- /dev/null
+++ b/color.h
@@ -0,0 +1,15 @@
+#ifndef COLOR_H
+#define COLOR_H
+
+#include "SDL.h"
+
+typedef struct {
+ Uint32 color;
+ Uint8 alpha;
+ SDL_Color components;
+} Color_t;
+
+Color_t * CreateColor(Uint8 r, Uint8 g, Uint8 b);
+Color_t * CreateColorAlpha(Uint8 r, Uint8 g, Uint8 b, Uint8 a);
+
+#endif