summaryrefslogtreecommitdiffstats
path: root/Smoke/streamlines.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-09 13:39:22 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-09 13:39:22 (GMT)
commita8ce8c6ea988e99570bed36b37a6ec02cf9e2059 (patch)
treefb6de41a44a04fb3c9c94bc9ad2e4acdfb847246 /Smoke/streamlines.c
parent2f82b925a8d54fccc0ed78ce9c16f1079aed8588 (diff)
download2iv35-a8ce8c6ea988e99570bed36b37a6ec02cf9e2059.zip
2iv35-a8ce8c6ea988e99570bed36b37a6ec02cf9e2059.tar.gz
2iv35-a8ce8c6ea988e99570bed36b37a6ec02cf9e2059.tar.bz2
streamlines stuffs
Diffstat (limited to 'Smoke/streamlines.c')
-rw-r--r--Smoke/streamlines.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Smoke/streamlines.c b/Smoke/streamlines.c
index 9be9c38..a962180 100644
--- a/Smoke/streamlines.c
+++ b/Smoke/streamlines.c
@@ -6,18 +6,22 @@
#include <rfftw.h>
+#include "fluids.h"
#include "funcs.h"
#include "palette.h"
#include "streamlines.h"
+
static int streamlines_render = FALSE;
static int streamlines_num_colors = PALETTE_MAXCOLORS;
static int streamlines_colormap = PALETTE_BLACKWHITE;
+static int streamlines_dataset = DATASET_RHO;
+
static float streamlines_alpha = 1.0f;
static fftw_real *streamlines_frame;
@@ -63,6 +67,16 @@ float streamlines_get_alpha(void)
return streamlines_alpha;
}
+void streamlines_set_dataset(int dataset)
+{
+ streamlines_dataset = dataset;
+}
+
+int streamlines_get_dataset(void)
+{
+ return streamlines_dataset;
+}
+
void streamlines_set_frame(fftw_real *frame)
{
streamlines_frame = frame;