18 files changed, 106 insertions, 47 deletions
diff --git a/src/model/geometry/protein_selected_geometry.c b/src/model/geometry/protein_selected_geometry.c new file mode 100644 index 0000000..fb37085 --- a/dev/null +++ b/src/model/geometry/protein_selected_geometry.c @@ -0,0 +1,30 @@ +#include "protein_selected_geometry.h" +#include "../../view/exp004state0.h" +#include <GL/glut.h> + +#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; +} |