Removing useless variable.
This commit is contained in:
parent
7957b8b555
commit
a7fb739204
@ -30,7 +30,6 @@ void Terrain::load() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this->makeTriangleMesh(0, 0, heightmapHeight, heightmapWidth);
|
this->makeTriangleMesh(0, 0, heightmapHeight, heightmapWidth);
|
||||||
heightmapChanged = false; //no need to make a TriangleMesh again before rendering
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Terrain::makeTriangleMesh(int startX, int startZ, int endX, int endZ) {
|
void Terrain::makeTriangleMesh(int startX, int startZ, int endX, int endZ) {
|
||||||
|
@ -22,7 +22,6 @@ class Terrain {
|
|||||||
std::string heightmapFilePath;
|
std::string heightmapFilePath;
|
||||||
int heightmapHeight, heightmapWidth;
|
int heightmapHeight, heightmapWidth;
|
||||||
float** heightmap; //can be accessed like 'float[][]'
|
float** heightmap; //can be accessed like 'float[][]'
|
||||||
bool heightmapChanged;
|
|
||||||
ACGL::OpenGL::SharedVertexArrayObject triangleMesh;
|
ACGL::OpenGL::SharedVertexArrayObject triangleMesh;
|
||||||
void set_abData(float* abData, int dataCount, int rowNum, int columnNum);
|
void set_abData(float* abData, int dataCount, int rowNum, int columnNum);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user