summaryrefslogtreecommitdiffstats
path: root/Smoke/smoke.c
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2008-01-03 14:58:08 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2008-01-03 14:58:08 (GMT)
commit747c680560744a021f1b99455db33f906970c3fe (patch)
tree6b7cf0ec59e1e399b060ca16e657249f8c5add32 /Smoke/smoke.c
parente1b9274194fcb0e5054948917628c5e1022b42c2 (diff)
download2iv35-747c680560744a021f1b99455db33f906970c3fe.zip
2iv35-747c680560744a021f1b99455db33f906970c3fe.tar.gz
2iv35-747c680560744a021f1b99455db33f906970c3fe.tar.bz2
dataset selection buttons now work
Diffstat (limited to 'Smoke/smoke.c')
-rw-r--r--Smoke/smoke.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/Smoke/smoke.c b/Smoke/smoke.c
index 1ccdb71..539c64e 100644
--- a/Smoke/smoke.c
+++ b/Smoke/smoke.c
@@ -3,10 +3,17 @@
#include <windows.h>
#endif
+#include <rfftw.h>
+
+#include "fluids.h"
#include "funcs.h"
+
static int smoke_render_smoke = TRUE;
-
+
+static int smoke_dataset = DATASET_RHO;
+static fftw_real *smoke_field;
+
void smoke_set_render(int render_smoke)
{
@@ -17,3 +24,23 @@ int smoke_get_render(void)
{
return smoke_render_smoke;
}
+
+void smoke_set_dataset(int dataset)
+{
+ smoke_dataset = dataset;
+}
+
+int smoke_get_dataset(void)
+{
+ return smoke_dataset;
+}
+
+void smoke_set_field(fftw_real *field)
+{
+ smoke_field = field;
+}
+
+fftw_real *smoke_get_field(void)
+{
+ return smoke_field;
+}