summaryrefslogtreecommitdiffstats
path: root/src/model/geometry/protein_geometry.c (plain)
blob: f2b3e4fcda985bd64584b78a6cd0b32caa575f50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "protein_geometry.h"
#include "../../view/state0.h"
#include <GL/glut.h>

#define S state0

void
protein_geometry (void)
{
  /*
   * Create a sphere and put it in a display list.
   */
  GLUquadricObj *obj = gluNewQuadric ();
  gluQuadricDrawStyle (obj, GLU_FILL);

  glNewList (S.list_offset + PROTEIN_GEOMETRY, GL_COMPILE);
  gluSphere (obj, 0.05, 20, 20);
  glEndList ();

  gluDeleteQuadric (obj);

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.