summaryrefslogtreecommitdiffstats
path: root/Smoke/glyphs.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/glyphs.c
parente1b9274194fcb0e5054948917628c5e1022b42c2 (diff)
download2iv35-747c680560744a021f1b99455db33f906970c3fe.zip
2iv35-747c680560744a021f1b99455db33f906970c3fe.tar.gz
2iv35-747c680560744a021f1b99455db33f906970c3fe.tar.bz2
dataset selection buttons now work
Diffstat (limited to 'Smoke/glyphs.c')
-rw-r--r--Smoke/glyphs.c33
1 files changed, 28 insertions, 5 deletions
diff --git a/Smoke/glyphs.c b/Smoke/glyphs.c
index 7ccf04e..c4466df 100644
--- a/Smoke/glyphs.c
+++ b/Smoke/glyphs.c
@@ -7,6 +7,7 @@
#include <rfftw.h>
#include "funcs.h"
+#include "fluids.h"
#include "palette.h"
#include "glyphs.h"
@@ -20,7 +21,9 @@ static int glyphs_colormap = PALETTE_BLACKWHITE;
static float glyphs_alpha = 0.5f;
-static fftw_real *glyphs_frame;
+static int glyphs_dataset_color = DATASET_RHO;
+static int glyphs_dataset_direction = DATASET_RHO;
+static fftw_real *glyphs_field;
void glyphs_set_render(int render_glyphs)
@@ -63,14 +66,34 @@ float glyphs_get_alpha(void)
return glyphs_alpha;
}
-void glyphs_set_frame(fftw_real *frame)
+void glyphs_set_dataset_color(int dataset)
{
- glyphs_frame = frame;
+ glyphs_dataset_color = dataset;
}
-fftw_real *glyphs_get_frame(void)
+int glyphs_get_dataset_color(void)
{
- return glyphs_frame;
+ return glyphs_dataset_color;
+}
+
+void glyphs_set_dataset_direction(int dataset)
+{
+ glyphs_dataset_direction = dataset;
+}
+
+int glyphs_get_dataset_direction(void)
+{
+ return glyphs_dataset_direction;
+}
+
+void glyphs_set_field(fftw_real *field)
+{
+ glyphs_field = field;
+}
+
+fftw_real *glyphs_get_field(void)
+{
+ return glyphs_field;
}