path:
root/
src/
view/
init.c (
plain)
blob: 47e8ffa4002bc3f1e6d6626dd841655ebf2304bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#include "../model/data/base.h"
#include "../model/geometry/datarose_geometry.h"
#include "../model/geometry/density_legend_geometry.h"
#include "../model/geometry/map_geometry.h"
#include "../model/geometry/protein_geometry.h"
#include "../model/geometry/protein_selected_geometry.h"
#include "../model/state/pan_info_init.h"
#include "../model/state/selection_info_init.h"
#include "../model/state/zoom_info_init.h"
#include "init.h"
#include "state0.h"
#include <GL/glut.h>
#define S state0
void
init (void)
{
/*
* Initialize default values, zero memory and NULL pointers.
*/
S.rows = 0;
S.gi_data = NULL;
S.base_vertices_data = NULL;
S.base_colors_data = NULL;
selection_info_init (&S.selection);
zoom_info_init (&S.zoom);
pan_info_init (&S.pan);
S.legend = true;
/*
* Load the data.
*/
base ();
/*
* Create the geometry based on the data.
*/
S.list_offset = glGenLists (NUM_LISTS);
protein_geometry ();
protein_selected_geometry ();
density_legend_geometry ();
map_geometry ();
datarose_geometry ();
return;
}
|