diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 14:07:14 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-09 14:07:14 -0500 |
commit | 5eab850f84d30bfe2042b439c65b7e83db581348 (patch) | |
tree | 93efdae85a039c3b83aece5405f9fa631a0a5ecb /libdimension/dimension | |
parent | a26ca6375382107037807abcd7ad4cdfd8cde2d6 (diff) | |
download | dimension-5eab850f84d30bfe2042b439c65b7e83db581348.tar.xz |
Rudimentary light/shadow handling.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/color.h | 6 | ||||
-rw-r--r-- | libdimension/dimension/scene.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h index ab2ea04..a72de98 100644 --- a/libdimension/dimension/color.h +++ b/libdimension/dimension/color.h @@ -80,10 +80,10 @@ dmnsn_CIE_Lab dmnsn_Lab_from_color(dmnsn_color color, dmnsn_CIE_XYZ white); dmnsn_CIE_Luv dmnsn_Luv_from_color(dmnsn_color color, dmnsn_CIE_XYZ white); dmnsn_sRGB dmnsn_sRGB_from_color(dmnsn_color color); -/* Perceptually correct color combination */ +/* Perceptual color manipulation */ dmnsn_color dmnsn_color_add(dmnsn_color color1, dmnsn_color color2); - -/* Perceptual color difference */ +dmnsn_color dmnsn_color_mul(double n, dmnsn_color color); +dmnsn_color dmnsn_color_illuminate(dmnsn_color light, dmnsn_color color); double dmnsn_color_difference(dmnsn_color color1, dmnsn_color color2); #endif /* DIMENSION_COLOR_H */ diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h index 8c9c705..e3f9662 100644 --- a/libdimension/dimension/scene.h +++ b/libdimension/dimension/scene.h @@ -29,6 +29,7 @@ typedef enum { DMNSN_RENDER_NONE, DMNSN_RENDER_OBJECTS, DMNSN_RENDER_PIGMENT, + DMNSN_RENDER_LIGHTS, DMNSN_RENDER_FULL } dmnsn_quality; |