diff options
author | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 16:27:09 (GMT) |
---|---|---|
committer | Wilrik de Loose <wilrik@wilrik.nl> | 2008-01-09 16:27:09 (GMT) |
commit | 30a4b86ec59e27d1b033f4505447d32792a06500 (patch) | |
tree | 1d63a6936ed1b9fde4c0304bf57695964fdac158 /Smoke/glyphs.c | |
parent | 4b45e834c8a243d299f7b09960dc43db58cb7910 (diff) | |
download | 2iv35-30a4b86ec59e27d1b033f4505447d32792a06500.zip 2iv35-30a4b86ec59e27d1b033f4505447d32792a06500.tar.gz 2iv35-30a4b86ec59e27d1b033f4505447d32792a06500.tar.bz2 |
lalal ilili
Diffstat (limited to 'Smoke/glyphs.c')
-rw-r--r-- | Smoke/glyphs.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/Smoke/glyphs.c b/Smoke/glyphs.c index 7c46eb0..956bbc1 100644 --- a/Smoke/glyphs.c +++ b/Smoke/glyphs.c @@ -3,6 +3,7 @@ #include <windows.h>
#endif
+#include <GL/gl.h>
#include <rfftw.h>
#include "funcs.h"
@@ -14,11 +15,11 @@ 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_sort = GLYPH_LINES;
static int glyphs_dataset_color = DATASET_RHO;
static int glyphs_dataset_direction = DATASET_RHO;
-static float glyphs_alpha = 0.5f;
+static float glyphs_alpha = 1.0f;
static fftw_real *glyphs_frame;
@@ -85,6 +86,19 @@ int glyphs_get_dataset_direction(void) void glyphs_set_sort(int sort)
{
glyphs_sort = sort;
+
+ switch (glyphs_sort)
+ {
+ case GLYPH_ARROWS:
+ load_textures("arrow.bmp");
+
+ case GLYPH_QUAKE:
+ load_textures("quake.bmp");
+ break;
+
+ default:
+ break;
+ }
}
int glyphs_get_sort(void)
|