summaryrefslogtreecommitdiffstats
Side-by-side diff
-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 @@
-/* I seem to need this for glGenBuffers as per
- http://www.gamedev.net/community/forums/topic.asp?topic_id=422358 */
#define GL_GLEXT_PROTOTYPES
-
#include "exp004geometry.h"
#include "exp004state0.h"
#include <GL/glut.h>
@@ -14,21 +11,16 @@ exp004geometry (GLenum mode)
glMatrixMode (GL_MODELVIEW);
glLoadIdentity ();
- glPointSize (0.1);
- glColor3f (0.2, 0.2, 0.2);
-
- for (int i = 0; i < ROWS; i++)
- {
- glLoadName (i);
- glPushMatrix ();
- glTranslatef (S.base_vertices_data[i][0],
- S.base_vertices_data[i][1], 0.0);
- glColor4fv (S.base_colors_data[i]);
- glCallList (S.list_offset + PROTEIN_GEOMETRY);
- glPopMatrix ();
- }
+ /*
+ * Draw the map.
+ */
+ glCallList (S.list_offset + MAP_GEOMETRY);
- glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY);
+ /*
+ * Draw the legend.
+ */
+ if (S.legend)
+ glCallList (S.list_offset + DENSITY_LEGEND_GEOMETRY);
return;
}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.