summaryrefslogtreecommitdiffstats
path: root/Smoke/flowvis.c
diff options
context:
space:
mode:
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;