summaryrefslogtreecommitdiffstats
path: root/src/view/geometry.c (plain)
blob: 7a3ed36117228a63032644ae427a6480bb91d487
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.