summaryrefslogtreecommitdiffstats
path: root/Smoke/glyphs.c
diff options
context:
space:
mode:
Diffstat (limited to 'Smoke/glyphs.c')
-rw-r--r--Smoke/glyphs.c26
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;