-rw-r--r-- | src/Makefile.am | 3 | ||||
-rw-r--r-- | src/model/display_list_index.h | 6 | ||||
-rw-r--r-- | src/model/exp004state.h | 6 | ||||
-rw-r--r-- | src/model/protein_geometry.c | 21 | ||||
-rw-r--r-- | src/model/protein_geometry.h | 9 | ||||
-rw-r--r-- | src/view/exp004geometry.c | 21 | ||||
-rw-r--r-- | src/view/exp004init.c | 3 | ||||
-rw-r--r-- | src/view/exp004view.c | 2 |
8 files changed, 61 insertions, 10 deletions
diff --git a/src/model/protein_geometry.c b/src/model/protein_geometry.c new file mode 100644 index 0000000..001b578 --- a/dev/null +++ b/src/model/protein_geometry.c | |||
@@ -0,0 +1,21 @@ | |||
1 | #include "protein_geometry.h" | ||
2 | #include "../view/exp004state0.h" | ||
3 | #include <GL/glut.h> | ||
4 | |||
5 | #define S exp004state0 | ||
6 | |||
7 | void | ||
8 | protein_geometry (void) | ||
9 | { | ||
10 | /* | ||
11 | * Create a sphere and put it in a display list. | ||
12 | */ | ||
13 | GLUquadricObj *obj = gluNewQuadric (); | ||
14 | gluQuadricDrawStyle (obj, GLU_FILL); | ||
15 | glNewList (S.list_offset + PROTEIN_GEOMETRY, GL_COMPILE); | ||
16 | gluSphere (obj, 0.05, 20, 20); | ||
17 | glEndList (); | ||
18 | gluDeleteQuadric (obj); | ||
19 | |||
20 | return; | ||
21 | } | ||