summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2007-12-20 11:11:09 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2007-12-20 11:11:09 (GMT)
commit59efc5c48768bc23af3b910f42493a8f8b0e259c (patch)
tree12b07a7eebe3a2c5e3638130ab51dd9cdf115087
parent5eb10584ed674276ef8d566089bda6c049584eeb (diff)
download2iv35-59efc5c48768bc23af3b910f42493a8f8b0e259c.zip
2iv35-59efc5c48768bc23af3b910f42493a8f8b0e259c.tar.gz
2iv35-59efc5c48768bc23af3b910f42493a8f8b0e259c.tar.bz2
added fftw frame pointer
-rw-r--r--Smoke/template.c12
-rw-r--r--Smoke/template.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/Smoke/template.c b/Smoke/template.c
index 81f2ed3..f311473 100644
--- a/Smoke/template.c
+++ b/Smoke/template.c
@@ -4,6 +4,8 @@
#endif
+#include <rfftw.h>
+
#include "funcs.h"
#include "palette.h"
@@ -49,6 +51,16 @@ int template_get_colormap(void)
return template_colormap;
}
+void template_set_frame(fftw_real *frame)
+{
+ template_frame = frame;
+}
+
+fftw_real *template_get_frame(void)
+{
+ return template_frame;
+}
+
struct color4f template_get_color(float value)
{
diff --git a/Smoke/template.h b/Smoke/template.h
index 9f880b5..eece956 100644
--- a/Smoke/template.h
+++ b/Smoke/template.h
@@ -13,6 +13,8 @@ inttemplate _get_colormap(void);
void template_set_alpha(int alpha);
int template_get_alpha(void);
+void template_set_frame(fftw_real *frame);
+fftw_real *template_get_frame(void
struct color4f template_get_color(float value);