33 files changed, 530 insertions, 113 deletions
diff --git a/src/view/geometry.c b/src/view/geometry.c new file mode 100644 index 0000000..7a3ed36 --- a/dev/null +++ b/src/view/geometry.c | |||
@@ -0,0 +1,26 @@ | |||
1 | #define GL_GLEXT_PROTOTYPES | ||
2 | #include "geometry.h" | ||
3 | #include "state0.h" | ||
4 | #include <GL/glut.h> | ||
5 | |||
6 | #define S state0 | ||
7 | |||
8 | void | ||
9 | geometry (GLenum mode) | ||
10 | { | ||
11 | glMatrixMode (GL_MODELVIEW); | ||
12 | glLoadIdentity (); | ||
13 | |||
14 | /* | ||
15 | * Draw the map. | ||
16 | */ | ||
17 | glCallList (S.list_offset + MAP_GEOMETRY); | ||
18 | |||
19 | /* | ||
20 | * Draw the legend. | ||
21 | */ | ||
22 | if (S.legend) | ||
23 | glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY); | ||
24 | |||
25 | return; | ||
26 | } | ||