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 @@ | |||
1 | #include "protein_selected_geometry.h" | ||
2 | #include "../../view/exp004state0.h" | ||
3 | #include <GL/glut.h> | ||
4 | |||
5 | #define S exp004state0 | ||
6 | |||
7 | void | ||
8 | protein_selected_geometry (void) | ||
9 | { | ||
10 | GLUquadricObj *obj = gluNewQuadric (); | ||
11 | gluQuadricDrawStyle (obj, GLU_FILL); | ||
12 | |||
13 | glNewList (S.list_offset + PROTEIN_SELECTED_GEOMETRY, GL_COMPILE); | ||
14 | |||
15 | glColor4f (255.0, 255.0, 0.0, 0.8); | ||
16 | |||
17 | /* | ||
18 | * The radius of this disk is relative to the radius of the sphere | ||
19 | * used for the protein geometry however this dependency is not captured | ||
20 | * in the code. Perhaps a variable radius for the proteins should be | ||
21 | * defined in the state object. | ||
22 | */ | ||
23 | gluDisk (obj, 0.04, 0.05, 20, 20); | ||
24 | |||
25 | glEndList (); | ||
26 | |||
27 | gluDeleteQuadric (obj); | ||
28 | |||
29 | return; | ||
30 | } | ||