diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 10:13:09 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 10:13:09 (GMT) |
commit | d2dfa01936d3d6e2a9ce7213ab4471e03b6a62e3 (patch) | |
tree | 6da95f04675d613f84fc3f6339e8a6cb8c995c20 /Smoke/glyphs.c | |
parent | 1224c8e7a27821d11ab3ec59d9f60199cd32465d (diff) | |
download | 2iv35-d2dfa01936d3d6e2a9ce7213ab4471e03b6a62e3.zip 2iv35-d2dfa01936d3d6e2a9ce7213ab4471e03b6a62e3.tar.gz 2iv35-d2dfa01936d3d6e2a9ce7213ab4471e03b6a62e3.tar.bz2 |
lalala
Diffstat (limited to 'Smoke/glyphs.c')
-rw-r--r-- | Smoke/glyphs.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/Smoke/glyphs.c b/Smoke/glyphs.c index 6d562bf..7c46eb0 100644 --- a/Smoke/glyphs.c +++ b/Smoke/glyphs.c @@ -3,7 +3,6 @@ #include <windows.h>
#endif
-
#include <rfftw.h>
#include "funcs.h"
@@ -12,17 +11,14 @@ #include "glyphs.h"
-
-static int glyphs_render = FALSE;
-
-static int glyphs_num_colors = PALETTE_MAXCOLORS;
-
-static int glyphs_colormap = PALETTE_BLACKWHITE;
+static int glyphs_render = FALSE;
+static int glyphs_num_colors = PALETTE_MAXCOLORS;
+static int glyphs_colormap = PALETTE_BLACKWHITE;
+static int glyphs_sort = GLYPH_ARROWS;
+static int glyphs_dataset_color = DATASET_RHO;
+static int glyphs_dataset_direction = DATASET_RHO;
static float glyphs_alpha = 0.5f;
-
-static int glyphs_dataset_color = DATASET_RHO;
-static int glyphs_dataset_direction = DATASET_RHO;
static fftw_real *glyphs_frame;
@@ -86,6 +82,16 @@ int glyphs_get_dataset_direction(void) return glyphs_dataset_direction;
}
+void glyphs_set_sort(int sort)
+{
+ glyphs_sort = sort;
+}
+
+int glyphs_get_sort(void)
+{
+ return glyphs_sort;
+}
+
void glyphs_set_frame(fftw_real *frame)
{
glyphs_frame = frame;
|