diff options
author | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-04 17:26:22 (GMT) |
---|---|---|
committer | Oliver Schinagl <oliver@schinagl.nl> | 2008-01-04 17:26:22 (GMT) |
commit | cf983359977dbea21b49747e3430725209a804ee (patch) | |
tree | c69181513a7ba12d365330b614b3b7586410f6e4 /Smoke/heightplots.c | |
parent | b12d6854cbb458c3de11266efefa8fb2ea11a1cf (diff) | |
download | 2iv35-cf983359977dbea21b49747e3430725209a804ee.zip 2iv35-cf983359977dbea21b49747e3430725209a804ee.tar.gz 2iv35-cf983359977dbea21b49747e3430725209a804ee.tar.bz2 |
force/vel/rho now selectable (for flowvis)
Diffstat (limited to 'Smoke/heightplots.c')
-rw-r--r-- | Smoke/heightplots.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Smoke/heightplots.c b/Smoke/heightplots.c index c4546df..4593455 100644 --- a/Smoke/heightplots.c +++ b/Smoke/heightplots.c @@ -6,6 +6,7 @@ #include <rfftw.h> +#include "fluids.h" #include "funcs.h" #include "palette.h" @@ -20,6 +21,8 @@ static int heightplots_colormap = PALETTE_BLACKWHITE; static float heightplots_alpha = 1.0f; +static int heightplots_dataset = DATASET_RHO; + static fftw_real *heightplots_frame; @@ -63,6 +66,16 @@ float heightplots_get_alpha(void) return heightplots_alpha; } +void heightplots_set_dataset(int dataset) +{ + heightplots_dataset = dataset; +} + +int heightplots_get_dataset(void) +{ + return heightplots_dataset; +} + void heightplots_set_frame(fftw_real *frame) { heightplots_frame = frame; |