summaryrefslogtreecommitdiffstats
path: root/Smoke/flowvis.c
diff options
context:
space:
mode:
authorWilrik de Loose <wilrik@wilrik.nl>2008-01-11 00:56:41 (GMT)
committerWilrik de Loose <wilrik@wilrik.nl>2008-01-11 00:56:41 (GMT)
commit051686899e00b3810399e8a247f04948b8f6e5db (patch)
treed3866f8950bf871a1653d1f18749f2379e95c427 /Smoke/flowvis.c
parent9ebec7f1fcb82fd26a2c64ba4e8557f2b87508ea (diff)
download2iv35-051686899e00b3810399e8a247f04948b8f6e5db.zip
2iv35-051686899e00b3810399e8a247f04948b8f6e5db.tar.gz
2iv35-051686899e00b3810399e8a247f04948b8f6e5db.tar.bz2
'leuke' 3d smoke history
Diffstat (limited to 'Smoke/flowvis.c')
-rw-r--r--Smoke/flowvis.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Smoke/flowvis.c b/Smoke/flowvis.c
index 3c6d637..75a04dc 100644
--- a/Smoke/flowvis.c
+++ b/Smoke/flowvis.c
@@ -20,6 +20,7 @@ static int flowvis_num_colors = PALETTE_MAXCOLORS;
static int flowvis_colormap = PALETTE_BLACKWHITE;
static float flowvis_alpha = 1.0f;
+static float flowvis_sort = FLOWVIS_SORT_FRAME;
static fftw_real *flowvis_frame;
static fftw_real **flowvis_history;
@@ -89,6 +90,16 @@ fftw_real *flowvis_get_frame(void)
return flowvis_frame;
}
+void flowvis_set_sort(int sort)
+{
+ flowvis_sort = sort;
+}
+
+int flowvis_get_sort(void)
+{
+ return flowvis_sort;
+}
+
void flowvis_set_history(fftw_real **history)
{
flowvis_history = history;