diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-20 11:42:31 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2007-12-20 11:42:31 (GMT) |
commit | b3a5933d58d67788ece2a3a12f6c073fd9c33261 (patch) | |
tree | 88ba2f57189d0daf341804a468a2dd0baf2fec1b | |
parent | 465c136f94ef4e48d0705e94d8fdc522b901882f (diff) | |
download | 2iv35-b3a5933d58d67788ece2a3a12f6c073fd9c33261.zip 2iv35-b3a5933d58d67788ece2a3a12f6c073fd9c33261.tar.gz 2iv35-b3a5933d58d67788ece2a3a12f6c073fd9c33261.tar.bz2 |
converted alpha from int to float
-rw-r--r-- | Smoke/template.c | 6 | ||||
-rw-r--r-- | Smoke/template.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Smoke/template.c b/Smoke/template.c index 2b594e9..f95c0a3 100644 --- a/Smoke/template.c +++ b/Smoke/template.c @@ -18,7 +18,7 @@ static int template_num_colors = PALETTE_MAXCOLORS; static int template_colormap = PALETTE_BLACKWHITE; -static int template_alpha = 1.0f; +static float template_alpha = 1.0f; static fftw_real *template_frame; @@ -53,12 +53,12 @@ int template_get_colormap(void) return template_colormap; } -void template_set_alpha(int alpha) +void template_set_alpha(float alpha) { template_alpha = alpha; } -int template_get_alpha(void) +float template_get_alpha(void) { return template_alpha; } diff --git a/Smoke/template.h b/Smoke/template.h index 0ef0b39..b4102e2 100644 --- a/Smoke/template.h +++ b/Smoke/template.h @@ -10,8 +10,8 @@ int template_get_num_colors(void); void template_set_colormap(int colormap); inttemplate _get_colormap(void); -void template_set_alpha(int alpha); -int template_get_alpha(void); +void template_set_alpha(float alpha); +float template_get_alpha(void); void template_set_frame(fftw_real *frame); fftw_real *template_get_frame(void); |