2011-m2s3-city-builder/main.cpp
Georges Dupéron 8be65b8703 Arches : 100% .
2012-01-20 01:51:57 +01:00

22 lines
529 B
C++

#include "all_includes.hh"
int main(int argc, char* argv[]) {
// Générer une tile de base
if(argc > 1)
Chose::initialSeed = (unsigned int) atoi(argv[1]);
std::cout << "Initial seed = " << Chose::initialSeed << std::endl;
float size = 200 * 100;
Vertex ne(+size/2.f, +size/2.f, 0);
Vertex se(+size/2.f, -size/2.f, 0);
Vertex sw(-size/2.f, -size/2.f, 0);
Vertex nw(-size/2.f, +size/2.f, 0);
Chose* c = new QuartierQuad(Quad(ne, se, sw, nw));
c->triangulation();
c->updateAABB();
new View(c);
return 0;
}