summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2007-12-20 10:56:23 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2007-12-20 10:56:23 (GMT)
commit6abfdbf340b8a9704842b6d56f63754689ae209d (patch)
tree4f815041ccb57ea2bcbdc161b76c3f924fd9ce05
parent4aabbced4987d0321827e4ae8bbd2e928205c9ba (diff)
download2iv35-6abfdbf340b8a9704842b6d56f63754689ae209d.zip
2iv35-6abfdbf340b8a9704842b6d56f63754689ae209d.tar.gz
2iv35-6abfdbf340b8a9704842b6d56f63754689ae209d.tar.bz2
added framepointer +getter/setter
-rw-r--r--Smoke/colormap.c13
-rw-r--r--Smoke/colormap.h3
2 files changed, 16 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)
{
diff --git a/Smoke/colormap.h b/Smoke/colormap.h
index 1d70054..8fcfc30 100644
--- a/Smoke/colormap.h
+++ b/Smoke/colormap.h
@@ -26,6 +26,9 @@ float colormap_get_clamp_min(void);
void colormap_set_clamp_max(float max_clamp);
float colormap_get_clamp_max(void);
+void colormap_set_frame(fftw_real *frame);
+fftw_real *colormap_get_frame(void);
+
struct color4f colormap_get_color(float value);