-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
38 lines (28 loc) · 826 Bytes
/
main.cpp
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
#include "glCanvas.h"
#include <time.h>
#include "MersenneTwister.h"
#include <iostream>
#include "argparser.h"
#include "mesh.h"
#include "hemisphere.h"
#include "forest.h"
MTRand GLOBAL_mtrand;
// =========================================
// =========================================
int main(int argc, char *argv[]) {
// deterministic (repeatable) randomness
// GLOBAL_mtrand = MTRand(37);
// "real" randomness
GLOBAL_mtrand = MTRand((unsigned)time(0));
//
ArgParser args(argc, argv);
Mesh mesh(&args);
Hemisphere hemisphere(&mesh, 10, 30);
Forest forest(&args, &hemisphere);
mesh.Load(args.input_file);
glutInit(&argc,argv);
GLCanvas::initialize(&args,&mesh,&hemisphere,&forest);
return 0;
}
// =========================================
// =========================================