diff options
Diffstat (limited to 'include/blender/color.h')
-rw-r--r-- | include/blender/color.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/blender/color.h b/include/blender/color.h new file mode 100644 index 0000000..cdf488a --- /dev/null +++ b/include/blender/color.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef UPEM_MORPHING_COLOR | ||
2 | #define UPEM_MORPHING_COLOR | ||
3 | |||
4 | /** | ||
5 | * File: color.h | ||
6 | * | ||
7 | * See also: | ||
8 | * A rainbow | ||
9 | */ | ||
10 | |||
11 | /** | ||
12 | * Type: ColorComponent | ||
13 | * Represents a single colour component of 32-bits RGBa tuple. | ||
14 | */ | ||
15 | typedef uint8_t ColorComponent; | ||
16 | |||
17 | /** | ||
18 | * Type: ColorPixel | ||
19 | * Represents a single RGBa coloured pixel. | ||
20 | * Compatible with the libMLV representation. | ||
21 | */ | ||
22 | typedef union { | ||
23 | ColorComponent r, g, b, a; | ||
24 | MLV_Color mlv; | ||
25 | } Color; | ||
26 | |||
27 | #endif | ||