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 @@ +#define GL_GLEXT_PROTOTYPES +#include "geometry.h" +#include "state0.h" +#include <GL/glut.h> + +#define S state0 + +void +geometry (GLenum mode) +{ + glMatrixMode (GL_MODELVIEW); + glLoadIdentity (); + + /* + * Draw the map. + */ + glCallList (S.list_offset + MAP_GEOMETRY); + + /* + * Draw the legend. + */ + if (S.legend) + glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY); + + return; +} |