summaryrefslogtreecommitdiffstats
path: root/src/view/exp004geometry.c (plain)
blob: e7193fd08a0c55b198a8d555d8f7cc06859a6bbc
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
/* I seem to need this for glGenBuffers as per
   http://www.gamedev.net/community/forums/topic.asp?topic_id=422358 */
#define GL_GLEXT_PROTOTYPES

#include "exp004geometry.h"
#include "exp004state0.h"
#include <GL/glut.h>

#define S exp004state0

void
exp004geometry (GLenum mode)
{
  glMatrixMode (GL_MODELVIEW);
  glLoadIdentity ();

  glPointSize (0.1);
  glColor3f (0.2, 0.2, 0.2);

  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 ();
    }

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.