summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-13 16:21:28 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-13 16:21:28 -0500
commita1fae1a38fc3cdb82e379a069fce886cb3fa88ae (patch)
treecdaa35a33c71917605ec2738d4e4f7c5ff3cb63b /libdimension/dimension
parentc552664a8371a55f2e082507998f78228308672c (diff)
downloaddimension-a1fae1a38fc3cdb82e379a069fce886cb3fa88ae.tar.xz
Clean up internal raytracing API a bit.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/color.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h
index 67fa032..43edbff 100644
--- a/libdimension/dimension/color.h
+++ b/libdimension/dimension/color.h
@@ -25,6 +25,8 @@
#ifndef DIMENSION_COLOR_H
#define DIMENSION_COLOR_H
+#include <stdbool.h>
+
/* Internally, we use sRGB color. */
typedef struct {
double filter, trans; /* Filter transparancy only lets light of this color
@@ -67,6 +69,9 @@ extern const dmnsn_color dmnsn_black, dmnsn_white, dmnsn_red, dmnsn_green,
/* Standard whitepoint, determined by the conversion of sRGB white to CIE XYZ */
extern const dmnsn_CIE_XYZ dmnsn_whitepoint;
+/* Is this color black? */
+bool dmnsn_color_is_black(dmnsn_color color);
+
/* Color conversions */
dmnsn_color dmnsn_color_from_XYZ(dmnsn_CIE_XYZ XYZ);