From 901f42ae84b73ea1baa0b20379021a9ab37250fc Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 2 Dec 2017 15:45:50 +0100 Subject: Add color cmp. func. Signed-off-by: pacien --- include/blender/color.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'include/blender') diff --git a/include/blender/color.h b/include/blender/color.h index 22ed563..1fef2cf 100644 --- a/include/blender/color.h +++ b/include/blender/color.h @@ -8,6 +8,9 @@ * A rainbow */ +#include +#include + /** * Type: ColorComponent * Represents a single colour component of 32-bits RGBa tuple. @@ -27,4 +30,17 @@ typedef union { MLV_Color mlv; } Color; +/** + * Function: color_equals + * Compares the supplied colors. + * + * Parameters: + * c1 - the first color + * c2 - the second color + * + * Returns: + * T(c1 is the same color as c2) + */ +bool color_equals(Color c1, Color c2); + #endif -- cgit v1.2.3