diff options
author | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2006-08-04 00:56:19 +0000 |
commit | f6997ebd1de555916c491dbd603f7a0e9c1d9c58 (patch) | |
tree | 23645695bcf2c9ddd154d004dfe09693139ffbf0 /color.h | |
parent | f2837ef813150240c00741018542dc271213ff5c (diff) |
Diffstat (limited to 'color.h')
-rw-r--r-- | color.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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
|