#include "protein_selected_geometry.h" #include "../../view/exp004state0.h" #include #define S exp004state0 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; }