From 35ffff5eac99d198c49933901d2bd0dddd520a74 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 12 Aug 2011 11:27:22 -0600 Subject: Rename "translucency" to "transparency". Perhaps I should look up terms before I use them. --- libdimension/dimension/color.h | 4 ++-- libdimension/dimension/scene.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libdimension/dimension') 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. */ }; -- cgit v1.2.3