summaryrefslogtreecommitdiffstats
path: root/src/model/map_geometry.c (plain)
blob: 055eb83d3ae16cf9102c228f8aa0ffa1e69c3920
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
#include "map_geometry.h"
#include "../view/exp004state0.h"
#include <GL/glut.h>

#define S exp004state0

void
map_geometry (void)
{
  glNewList (S.list_offset + MAP_GEOMETRY, GL_COMPILE);
  glPolygonMode (GL_FRONT, GL_FILL);

  for (int i = 0; i < ROWS; i++)
    {
      glLoadName (i);
      glPushMatrix ();
      glTranslatef (S.base_vertices_data[i][0],
		    S.base_vertices_data[i][1], 0.0);
      glColor4fv (S.base_colors_data[i]);
      glCallList (S.list_offset + PROTEIN_GEOMETRY);
      glPopMatrix ();
    }

  glEndList ();

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.