summaryrefslogtreecommitdiffstats
path: root/Smoke/streamlines.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-09 16:22:34 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-09 16:22:34 (GMT)
commit4b45e834c8a243d299f7b09960dc43db58cb7910 (patch)
tree81f58e6af8c70b1695ff374d085cacd15edd0d13 /Smoke/streamlines.c
parent19104903490d2c67f9b385804a7f89df8f6fc48c (diff)
download2iv35-4b45e834c8a243d299f7b09960dc43db58cb7910.zip
2iv35-4b45e834c8a243d299f7b09960dc43db58cb7910.tar.gz
2iv35-4b45e834c8a243d299f7b09960dc43db58cb7910.tar.bz2
fix frame history!
Diffstat (limited to 'Smoke/streamlines.c')
-rw-r--r--Smoke/streamlines.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Smoke/streamlines.c b/Smoke/streamlines.c
index a962180..be3dfe4 100644
--- a/Smoke/streamlines.c
+++ b/Smoke/streamlines.c
@@ -25,6 +25,7 @@ static int streamlines_dataset = DATASET_RHO;
static float streamlines_alpha = 1.0f;
static fftw_real *streamlines_frame;
+static fftw_real **streamlines_history;
void streamlines_set_render(int render_streamlines)
@@ -87,6 +88,16 @@ fftw_real *streamlines_get_frame(void)
return streamlines_frame;
}
+void streamlines_set_history(fftw_real **history)
+{
+ streamlines_history = history;
+}
+
+fftw_real *streamlines_get_history(int hisdex)
+{
+ return streamlines_history[hisdex];
+}
+
struct color4f streamlines_get_color(float value)
{