summaryrefslogtreecommitdiff
path: root/color.h
blob: 1297d69744765be073a6409914685d0e5747a7f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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