More heightmaps

This commit is contained in:
2016-05-24 09:58:28 +02:00
parent 28d5c06c7f
commit 8c9b39983b
5 changed files with 12 additions and 6 deletions
+6 -2
View File
@@ -6,13 +6,12 @@
#include <string>
GLuint imageIndex;
int scale = 50;
HeightMap::HeightMap(const std::string &file)
{
int bpp;
unsigned char* imgData = stbi_load(file.c_str(), &width, &height, &bpp, 4);
int scale = 50;
for (int h = 0; h < height; h++)
{
@@ -72,4 +71,9 @@ void HeightMap::Draw()
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
//glDisableClientState(GL_COLOR_ARRAY);
//glDisableClientState(GL_NORMAL_ARRAY);
}
void HeightMap::GetHeigth(float x, float z)
{
}