#pragma once #include #include #include #include "../nclgl/Mesh.h" #include "../CrowdSimulator/CrowdSimulator/Entity.h" #ifndef HEIGHT_MAP_DEF_OFF #define RAW_WIDTH 257 #define RAW_HEIGHT 257 #define HEIGHTMAP_X 16.0f #define HEIGHTMAP_Z 16.0f //#define HEIGHTMAP_Y 1.25f #define HEIGHTMAP_Y 0.1f //change the height of the terrain - higer the value, the higher the terrain #define HEIGHTMAP_TEX_X 1.0f/16.0f #define HEIGHTMAP_TEX_Z 1.0f/16.0f #endif class HeightMap : public Mesh { public: HeightMap(std::string name, const float rawWidth = RAW_WIDTH, const float rawHeight = RAW_HEIGHT, const float HeightMapX= HEIGHTMAP_X, const float HeightMapY = HEIGHTMAP_Y, const float HeightMapZ = HEIGHTMAP_Z, const float HeightMapTexX = HEIGHTMAP_TEX_X, const float HeightMapTexZ = HEIGHTMAP_TEX_Z); ~HeightMap(void) {}; // int position; //index for map tile //float radius; //radius //Vector3 coords; //x,y,z coordinates // HeightMap(void); // HeightMap(int index, float _radius); // void draw(); };