summaryrefslogtreecommitdiffstats
path: root/src/model/geometry/protein_selected_geometry.c (plain)
blob: abc170612631b3fc4fd6a776287eb97a6f14bf11
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
#include "protein_selected_geometry.h"
#include "../../view/state0.h"
#include <GL/glut.h>

#define S state0

void
protein_selected_geometry (void)
{
  GLUquadricObj *obj = gluNewQuadric ();
  gluQuadricDrawStyle (obj, GLU_FILL);

  glNewList (S.list_offset + PROTEIN_SELECTED_GEOMETRY, GL_COMPILE);

  glColor4f (255.0, 255.0, 0.0, 0.8);

  /*
   * The radius of this disk is relative to the radius of the sphere
   * used for the protein geometry however this dependency is not captured
   * in the code.  Perhaps a variable radius for the proteins should be
   * defined in the state object.
   */
  gluDisk (obj, 0.04, 0.05, 20, 20);

  glEndList ();

  gluDeleteQuadric (obj);

  return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.