X-Git-Url: http://git.mutantstargoat.com?p=demo;a=blobdiff_plain;f=src%2Fterrain.cc;h=6bfabe8cc5b166f2c3c023aea9bf416399dfb7b3;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hb=197f20b5d4db937029f7b585be23ee7fe5da66dc;hpb=dd0aabd3aed66f9c5d25a9e8bcbbb07c7f886085 diff --git a/src/terrain.cc b/src/terrain.cc index e69de29..6bfabe8 100644 --- a/src/terrain.cc +++ b/src/terrain.cc @@ -0,0 +1,39 @@ +#include "camera.h" +#include "image.h" +#include "scene.h" +#include "terrain.h" + +Terrain::Terrain() {} + +Terrain::~Terrain() +{ +} + +bool Terrain::generate(const TerrainParams ¶ms) +{ + // if(xsz <= 0 || ysz <=0) { + // fprintf(stderr, "Invalid terrain size.\n"); + // return false; + // } + + // if(xtiles <= 0 || ytiles <= 0) { + // fprintf(stderr, "Invalid number of terrain tiles.\n"); + // return false; + // } + + // if(tiles) + // tiles.clear(); + + // int tsz = xtiles * ytiles; + // tiles.resize(tsz); + + // for(int i=0; i