summaryrefslogtreecommitdiff
path: root/include/blender/color.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/blender/color.h')
-rw-r--r--include/blender/color.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/include/blender/color.h b/include/blender/color.h
deleted file mode 100644
index 1fef2cf..0000000
--- a/include/blender/color.h
+++ /dev/null
@@ -1,46 +0,0 @@
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#include <MLV/MLV_color.h>
12#include <stdbool.h>
13
14/**
15 * Type: ColorComponent
16 * Represents a single colour component of 32-bits RGBa tuple.
17 */
18typedef uint8_t ColorComponent;
19
20/**
21 * Type: ColorPixel
22 * Represents a single RGBa coloured pixel.
23 * Compatible with the libMLV representation.
24 */
25typedef union {
26 struct {
27 ColorComponent r, g, b, a;
28 } rgba;
29
30 MLV_Color mlv;
31} Color;
32
33/**
34 * Function: color_equals
35 * Compares the supplied colors.
36 *
37 * Parameters:
38 * c1 - the first color
39 * c2 - the second color
40 *
41 * Returns:
42 * T(c1 is the same color as c2)
43 */
44bool color_equals(Color c1, Color c2);
45
46#endif