diff --git a/level.cc b/level.cc index b621806..6b73d91 100644 --- a/level.cc +++ b/level.cc @@ -2,6 +2,7 @@ Level::Level(std::string filePath){ this->filePath = filePath; + terrain = Terrain(filePath + "/terrain"); } Level::Level() { @@ -11,6 +12,10 @@ Level::~Level() { } void Level::load(Shader shader) { + terrain.load(); + + + // currently hard coded should later read this stuff out of a file // load the geometry of the stanford bunny and build a VAO: Model model = Model("Bunny.obj"); @@ -33,6 +38,7 @@ void Level::render() { for(int i = 0; i #include "texture.hh" #include -#include "extern/bullet/src/BulletDynamics/Dynamics/btRigidBody.h" class Terrain { public: