Fix image direction / load from JSON

This commit is contained in:
2016-06-09 12:22:40 +02:00
parent 69561794d8
commit a4373adc25
7 changed files with 37 additions and 28 deletions
+6
View File
@@ -131,6 +131,12 @@ float HeightMap::GetHeight(float x, float y)
return z.y;
}
int HeightMap::GetSize()
{
return height >= width ? height : width;
}
void HeightMap::SetTexture(const std::string &file)
{
int bpp, width2, height2;