diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-20 11:33:31 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-20 11:33:31 (GMT) |
commit | 6e60076c7bf4b928da25ab37d59b8b38a1588eab (patch) | |
tree | a8774cea1d9c2c5b90c0a81ec73a3ba75ace8933 /Smoke/heightplots.c | |
parent | 4b322240380d8351bb68462880d13e0b92769e26 (diff) | |
download | 2iv35-6e60076c7bf4b928da25ab37d59b8b38a1588eab.zip 2iv35-6e60076c7bf4b928da25ab37d59b8b38a1588eab.tar.gz 2iv35-6e60076c7bf4b928da25ab37d59b8b38a1588eab.tar.bz2 |
added setteable alpha's and frame pointers
Diffstat (limited to 'Smoke/heightplots.c')
-rw-r--r-- | Smoke/heightplots.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/Smoke/heightplots.c b/Smoke/heightplots.c index fa12a78..57fee1d 100644 --- a/Smoke/heightplots.c +++ b/Smoke/heightplots.c @@ -4,6 +4,8 @@ #endif +#include <rfftw.h> + #include "funcs.h" #include "palette.h" @@ -16,6 +18,10 @@ static int heightplots_num_colors = PALETTE_MAXCOLORS; static int heightplots_colormap = PALETTE_BLACKWHITE; +static int heightplots_alpha = 1.0f; + +static fftw_real *heightplots_frame; + void heightplots_set_render(int render_heightplots) { @@ -47,13 +53,28 @@ int heightplots_get_colormap(void) return heightplots_colormap; } +int heightplots_get_alpha(void) +{ + return heightplots_alpha; +} + +void heightplots_set_frame(fftw_real *frame) +{ + heightplots_frame = frame; +} + +fftw_real *heightplots_get_frame(void) +{ + return heightplots_frame; +} + struct color4f heightplots_get_color(float value) { struct color4f return_value; return_value = set_palette(heightplots_colormap, value, heightplots_num_colors); - return_value.a = 1.0f; + return_value.a = heightplots_alpha; return return_value; } |