summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--src/controller/clear_selection.sqc9
-rw-r--r--src/controller/exp004processhits.c6
-rw-r--r--src/controller/keyboard.c10
-rw-r--r--src/controller/selection_from_db.sqc6
-rw-r--r--src/model/density_legend_geometry.c20
-rw-r--r--src/model/exp004state.h7
-rw-r--r--src/model/protein_geometry.c2
-rw-r--r--src/view/exp004geometry.c26
-rw-r--r--src/view/exp004init.c3
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_PROTOTYPES1#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 ();
1613
17 glPointSize (0.1);14 /*
18 glColor3f (0.2, 0.2, 0.2);15 * Draw the map.
1916 */
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 }
3018
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);
3224
33 return;25 return;
34}26}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.