diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-09 13:39:22 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-09 13:39:22 (GMT) |
commit | a8ce8c6ea988e99570bed36b37a6ec02cf9e2059 (patch) | |
tree | fb6de41a44a04fb3c9c94bc9ad2e4acdfb847246 /Smoke/streamlines.c | |
parent | 2f82b925a8d54fccc0ed78ce9c16f1079aed8588 (diff) | |
download | 2iv35-a8ce8c6ea988e99570bed36b37a6ec02cf9e2059.zip 2iv35-a8ce8c6ea988e99570bed36b37a6ec02cf9e2059.tar.gz 2iv35-a8ce8c6ea988e99570bed36b37a6ec02cf9e2059.tar.bz2 |
streamlines stuffs
Diffstat (limited to 'Smoke/streamlines.c')
-rw-r--r-- | Smoke/streamlines.c | 14 |
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; |