summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/Makefile.am3
-rw-r--r--src/model/display_list_index.h6
-rw-r--r--src/model/exp004state.h6
-rw-r--r--src/model/protein_geometry.c21
-rw-r--r--src/model/protein_geometry.h9
-rw-r--r--src/view/exp004geometry.c21
-rw-r--r--src/view/exp004init.c3
-rw-r--r--src/view/exp004view.c2
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
7void
8protein_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}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.