Corrected spaces.
This commit is contained in:
parent
9765f03d88
commit
5eb3aed1ce
12
terrain.cc
12
terrain.cc
@ -45,12 +45,12 @@ void Terrain::makeTriangleMesh(){
|
||||
float* abData = new float[numVertices * floatsPerVertex];
|
||||
|
||||
while(rowNum < this->heightmapHeight){ //traversing the Triangle Strip!
|
||||
set_abData(abData, dataCount, rowNum, columnNum);
|
||||
dataCount += floatsPerVertex;
|
||||
if (isUp){
|
||||
rowNum = rowNum + 1;
|
||||
isUp = false;
|
||||
}
|
||||
set_abData(abData, dataCount, rowNum, columnNum);
|
||||
dataCount += floatsPerVertex;
|
||||
if (isUp){
|
||||
rowNum = rowNum + 1;
|
||||
isUp = false;
|
||||
}
|
||||
else if (movingRight) {
|
||||
if (columnNum == this->heightmapWidth - 1) {
|
||||
set_abData(abData, dataCount, rowNum, columnNum);
|
||||
|
Loading…
Reference in New Issue
Block a user