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];
|
float* abData = new float[numVertices * floatsPerVertex];
|
||||||
|
|
||||||
while(rowNum < this->heightmapHeight){ //traversing the Triangle Strip!
|
while(rowNum < this->heightmapHeight){ //traversing the Triangle Strip!
|
||||||
set_abData(abData, dataCount, rowNum, columnNum);
|
set_abData(abData, dataCount, rowNum, columnNum);
|
||||||
dataCount += floatsPerVertex;
|
dataCount += floatsPerVertex;
|
||||||
if (isUp){
|
if (isUp){
|
||||||
rowNum = rowNum + 1;
|
rowNum = rowNum + 1;
|
||||||
isUp = false;
|
isUp = false;
|
||||||
}
|
}
|
||||||
else if (movingRight) {
|
else if (movingRight) {
|
||||||
if (columnNum == this->heightmapWidth - 1) {
|
if (columnNum == this->heightmapWidth - 1) {
|
||||||
set_abData(abData, dataCount, rowNum, columnNum);
|
set_abData(abData, dataCount, rowNum, columnNum);
|
||||||
|
Loading…
Reference in New Issue
Block a user