www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

main.cpp (566B)


      1 #include "all_includes.hh"
      2 
      3 int main(int argc, char* argv[]) {
      4 	glutInit(&argc, argv);
      5 	// Générer une tile de base
      6 	if(argc > 1)
      7         Chose::initialSeed = (unsigned int) atoi(argv[1]);
      8 
      9 	std::cout << "Initial seed = " << Chose::initialSeed << std::endl;
     10 	float size = 20000 * 100;
     11 	Vertex ne(+size/2.f, +size/2.f, 0);
     12 	Vertex se(+size/2.f, -size/2.f, 0);
     13 	Vertex sw(-size/2.f, -size/2.f, 0);
     14 	Vertex nw(+size/2.f - size/8.f, +size/2.f, 0);
     15 
     16 	Chose* c = new QuartierQuad(Quad(ne, se, sw, nw));
     17 	c->triangulation();
     18 	c->updateAABB();
     19 
     20 	new View(c);
     21 	return 0;
     22 }