diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-20 10:56:23 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-20 10:56:23 (GMT) |
commit | 6abfdbf340b8a9704842b6d56f63754689ae209d (patch) | |
tree | 4f815041ccb57ea2bcbdc161b76c3f924fd9ce05 /Smoke/colormap.c | |
parent | 4aabbced4987d0321827e4ae8bbd2e928205c9ba (diff) | |
download | 2iv35-6abfdbf340b8a9704842b6d56f63754689ae209d.zip 2iv35-6abfdbf340b8a9704842b6d56f63754689ae209d.tar.gz 2iv35-6abfdbf340b8a9704842b6d56f63754689ae209d.tar.bz2 |
added framepointer +getter/setter
Diffstat (limited to 'Smoke/colormap.c')
-rw-r--r-- | Smoke/colormap.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Smoke/colormap.c b/Smoke/colormap.c index bd3f3a9..946d9fc 100644 --- a/Smoke/colormap.c +++ b/Smoke/colormap.c @@ -6,6 +6,8 @@ #include <math.h> +#include <fftw.h> + #include "funcs.h" #include "palette.h" @@ -28,6 +30,7 @@ static float clamp_min = 0.0f; static float clamp_max = 0.9999f; +static fftw_real *colormap_frame; void colormap_set_num_colors(int num_colors) @@ -134,6 +137,16 @@ static float clamp(float value) return value; } +void colormap_set_frame(fftw_real *frame) +{ + colormap_frame = frame; +} + +fftw_real *colormap_get_frame(void) +{ + return colormap_frame; +} + struct color4f colormap_get_color(float value) { |