diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-11-14 21:20:43 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-11-14 21:20:43 -0500 |
commit | 8fe33a340b8979a73fa84f201c15519a9b5d0266 (patch) | |
tree | 12cdbb1c1b9a48f533ab36980602785be1e1deeb /libdimension/solid_pigment.c | |
parent | 20a55aa78050d94b187d4edfaac91ea00efea505 (diff) | |
download | dimension-8fe33a340b8979a73fa84f201c15519a9b5d0266.tar.xz |
Document libdimension with Doxygen.
Diffstat (limited to 'libdimension/solid_pigment.c')
-rw-r--r-- | libdimension/solid_pigment.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/libdimension/solid_pigment.c b/libdimension/solid_pigment.c index 2b878c7..14bdffe 100644 --- a/libdimension/solid_pigment.c +++ b/libdimension/solid_pigment.c @@ -18,12 +18,21 @@ * <http://www.gnu.org/licenses/>. * *************************************************************************/ +/** + * @file + * Solid color pigments. + */ + #include "dimension.h" #include <stdlib.h> -/* Solid color pigment callback */ -static dmnsn_color dmnsn_solid_pigment_fn(const dmnsn_pigment *pigment, - dmnsn_vector v); +/** Solid color pigment callback. */ +static dmnsn_color +dmnsn_solid_pigment_fn(const dmnsn_pigment *pigment, dmnsn_vector v) +{ + dmnsn_color *color = pigment->ptr; + return *color; +} /* Create a solid color */ dmnsn_pigment * @@ -41,11 +50,3 @@ dmnsn_new_solid_pigment(dmnsn_color color) return pigment; } - -/* Solid color callback */ -static dmnsn_color -dmnsn_solid_pigment_fn(const dmnsn_pigment *pigment, dmnsn_vector v) -{ - dmnsn_color *color = pigment->ptr; - return *color; -} |