path:
root/
src/
view/
geometry.c (
plain)
blob: fc09ee078ebe38abf461bbc6b117e6f53faa75d1
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
27
28
29
30
31
32
33
34
35
36
|
#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 ();
glPushMatrix ();
/*
* Apply the results of any panning operations.
*/
glTranslatef (S.pan.trans[0], S.pan.trans[1], 0.0);
/*
* Draw the map.
*/
glCallList (S.list_offset + MAP_GEOMETRY);
glPopMatrix ();
/*
* Draw the legend.
*/
if (S.legend)
glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY);
glCallList (S.list_offset + DATAROSE_GEOMETRY);
return;
}
|