diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-08-12 11:27:22 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-08-12 11:27:22 -0600 |
commit | 35ffff5eac99d198c49933901d2bd0dddd520a74 (patch) | |
tree | 347fc70bb8ed224956226b3cee0c4cc61f7919bc /libdimension/dimension | |
parent | 7742c81f3cbfa01f5e81ae6f5fe2c8edf754edb4 (diff) | |
download | dimension-35ffff5eac99d198c49933901d2bd0dddd520a74.tar.xz |
Rename "translucency" to "transparency".
Perhaps I should look up terms before I use them.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/color.h | 4 | ||||
-rw-r--r-- | libdimension/dimension/scene.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/dimension/color.h b/libdimension/dimension/color.h index d4e0402..b135c70 100644 --- a/libdimension/dimension/color.h +++ b/libdimension/dimension/color.h @@ -31,7 +31,7 @@ typedef struct { double G; /**< sRGB green value. */ double B; /**< sRGB blue value. */ - double trans; /**< Translucency. */ + double trans; /**< Transparency. */ double filter; /**< Degree of filtering. */ } dmnsn_color; @@ -92,7 +92,7 @@ dmnsn_color dmnsn_color_gradient(dmnsn_color c1, dmnsn_color c2, double n); /** Filter \p light through \p filter. */ dmnsn_color dmnsn_filter_light(dmnsn_color light, dmnsn_color filter); /** Add the background contribution \p filtered to \p filter. */ -dmnsn_color dmnsn_apply_translucency(dmnsn_color filtered, dmnsn_color filter); +dmnsn_color dmnsn_apply_transparency(dmnsn_color filtered, dmnsn_color filter); /** Add the background contribution of \p color to \p filter. */ dmnsn_color dmnsn_apply_filter(dmnsn_color color, dmnsn_color filter); /** Convert the color into a close equivalent with only transmittance. */ diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h index 41e2360..2f659e9 100644 --- a/libdimension/dimension/scene.h +++ b/libdimension/dimension/scene.h @@ -29,7 +29,7 @@ enum { DMNSN_RENDER_PIGMENT = 1 << 0, /**< Render pigments. */ DMNSN_RENDER_LIGHTS = 1 << 1, /**< Render lights and shadows. */ DMNSN_RENDER_FINISH = 1 << 2, /**< Render object finishes. */ - DMNSN_RENDER_TRANSLUCENCY = 1 << 3, /**< Render translucency/refraction. */ + DMNSN_RENDER_TRANSPARENCY = 1 << 3, /**< Render transparency/refraction. */ DMNSN_RENDER_REFLECTION = 1 << 4, /**< Render specular reflection. */ DMNSN_RENDER_FULL = ~DMNSN_RENDER_NONE /**< Render everything. */ }; |