Added height at location

This commit is contained in:
2016-05-26 17:06:34 +02:00
parent 4c613b606a
commit 2b0e22d4c9
10 changed files with 54 additions and 29 deletions
+3 -3
View File
@@ -12,13 +12,13 @@ private:
int width;
GLuint imageIndex;
int scale = 1;
int scale;
public:
HeightMap(const std::string &file);
HeightMap(const std::string &file, float scale);
~HeightMap();
void Draw();
float GetHeigth(float x, float y);
float GetHeight(float x, float y);
void SetTexture(const std::string &file);
std::vector<Vertex> vertices;