From Chris Hanson, typo and comment clean ups

This commit is contained in:
Robert Osfield
2009-07-24 14:45:44 +00:00
parent 68c459ea30
commit 773ae51a45
14 changed files with 45 additions and 39 deletions

View File

@@ -953,6 +953,7 @@ void DrawShapeVisitor::apply(const HeightField& field)
// draw each row of HeightField
for(unsigned int row=0;row<field.getNumRows()-1;++row,vBase+=dv)
{
@@ -962,7 +963,7 @@ void DrawShapeVisitor::apply(const HeightField& field)
glBegin(GL_QUAD_STRIP);
// draw skirt at beginning if required.
// draw skirt at beginning of this row if required.
if (field.getSkirtHeight()!=0.0f)
{
vertTop.set(0.0f,dy*(float)(row+1),field.getHeight(0,row+1)-field.getSkirtHeight());
@@ -980,6 +981,7 @@ void DrawShapeVisitor::apply(const HeightField& field)
glVertex3fv(vertBase.ptr());
}
// draw the actual row
for(unsigned int col=0;col<field.getNumColumns();++col,u+=du)
{
vertTop.set(dx*(float)col,dy*(float)(row+1),field.getHeight(col,row+1));
@@ -998,7 +1000,7 @@ void DrawShapeVisitor::apply(const HeightField& field)
}
// draw skirt at end if required.
// draw skirt at end of this row if required.
if (field.getSkirtHeight()!=0.0f)
{