diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-07-27 18:02:09 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-07-27 18:03:06 -0600 |
commit | 2c6692e1fb0687ddd2898220286c7a3c7e8b6850 (patch) | |
tree | 751245112aa4df1ea9746a6fc981ba061928bbb0 /libdimension/solid_pigment.c | |
parent | 43d43e8d604adcf13f10d2e96554e48ac407e8ab (diff) | |
download | dimension-2c6692e1fb0687ddd2898220286c7a3c7e8b6850.tar.xz |
Use quick_color only for solid pigments.
Diffstat (limited to 'libdimension/solid_pigment.c')
-rw-r--r-- | libdimension/solid_pigment.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/libdimension/solid_pigment.c b/libdimension/solid_pigment.c index f53c5dc..c54ef63 100644 --- a/libdimension/solid_pigment.c +++ b/libdimension/solid_pigment.c @@ -26,27 +26,11 @@ #include "dimension.h" #include <stdlib.h> -/** 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 * dmnsn_new_solid_pigment(dmnsn_color color) { dmnsn_pigment *pigment = dmnsn_new_pigment(); - - dmnsn_color *solid = dmnsn_malloc(sizeof(dmnsn_color)); - *solid = color; - - pigment->pigment_fn = dmnsn_solid_pigment_fn; - pigment->free_fn = dmnsn_free; pigment->quick_color = color; - pigment->ptr = solid; - return pigment; } |