-rw-r--r-- | src/view/exp004init.c | 15 | ||||
-rw-r--r-- | src/view/exp004view.c | 2 |
2 files changed, 15 insertions, 2 deletions
diff --git a/src/view/exp004init.c b/src/view/exp004init.c index 30d8d96..5a6ddd0 100644 --- a/src/view/exp004init.c +++ b/src/view/exp004init.c @@ -6,6 +6,7 @@ #include "../model/geometry/protein_selected_geometry.h" #include "../model/selection_info_init.h" #include "../model/zoom_info_init.h" +#include "../model/exp004base.h" #include <GL/glut.h> #define S exp004state0 @@ -13,10 +14,24 @@ void exp004init (void) { + /* + * Initialize default values, zero memory and NULL pointers. + */ + S.rows = 0; + S.base_vertices_data = NULL; + S.base_colors_data = NULL; selection_info_init (&S.selection); zoom_info_init (&S.zoom); S.legend = true; + /* + * Load the data. + */ + exp004base (); + + /* + * Create the geometry based on the data. + */ S.list_offset = glGenLists (NUM_LISTS); protein_geometry (); protein_selected_geometry (); |