-rw-r--r-- | src/controller/clear_selection.sqc | 9 | ||||
-rw-r--r-- | src/controller/exp004processhits.c | 6 | ||||
-rw-r--r-- | src/controller/keyboard.c | 10 | ||||
-rw-r--r-- | src/controller/selection_from_db.sqc | 6 | ||||
-rw-r--r-- | src/model/density_legend_geometry.c | 20 | ||||
-rw-r--r-- | src/model/exp004state.h | 7 | ||||
-rw-r--r-- | src/model/protein_geometry.c | 2 | ||||
-rw-r--r-- | src/view/exp004geometry.c | 26 | ||||
-rw-r--r-- | src/view/exp004init.c | 3 |
9 files changed, 59 insertions, 30 deletions
diff --git a/src/view/exp004geometry.c b/src/view/exp004geometry.c index 6f3bc17..76f39bb 100644 --- a/src/view/exp004geometry.c +++ b/src/view/exp004geometry.c | |||
@@ -1,7 +1,4 @@ | |||
1 | /* I seem to need this for glGenBuffers as per | ||
2 | http://www.gamedev.net/community/forums/topic.asp?topic_id=422358 */ | ||
3 | #define GL_GLEXT_PROTOTYPES | 1 | #define GL_GLEXT_PROTOTYPES |
4 | |||
5 | #include "exp004geometry.h" | 2 | #include "exp004geometry.h" |
6 | #include "exp004state0.h" | 3 | #include "exp004state0.h" |
7 | #include <GL/glut.h> | 4 | #include <GL/glut.h> |
@@ -14,21 +11,16 @@ exp004geometry (GLenum mode) | |||
14 | glMatrixMode (GL_MODELVIEW); | 11 | glMatrixMode (GL_MODELVIEW); |
15 | glLoadIdentity (); | 12 | glLoadIdentity (); |
16 | 13 | ||
17 | glPointSize (0.1); | 14 | /* |
18 | glColor3f (0.2, 0.2, 0.2); | 15 | * Draw the map. |
19 | 16 | */ | |
20 | for (int i = 0; i < ROWS; i++) | 17 | glCallList (S.list_offset + MAP_GEOMETRY); |
21 | { | ||
22 | glLoadName (i); | ||
23 | glPushMatrix (); | ||
24 | glTranslatef (S.base_vertices_data[i][0], | ||
25 | S.base_vertices_data[i][1], 0.0); | ||
26 | glColor4fv (S.base_colors_data[i]); | ||
27 | glCallList (S.list_offset + PROTEIN_GEOMETRY); | ||
28 | glPopMatrix (); | ||
29 | } | ||
30 | 18 | ||
31 | glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY); | 19 | /* |
20 | * Draw the legend. | ||
21 | */ | ||
22 | if (S.legend) | ||
23 | glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY); | ||
32 | 24 | ||
33 | return; | 25 | return; |
34 | } | 26 | } |