summaryrefslogtreecommitdiffstats
path: root/matchblox/engine/C_Box.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'matchblox/engine/C_Box.cpp')
-rw-r--r--matchblox/engine/C_Box.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/matchblox/engine/C_Box.cpp b/matchblox/engine/C_Box.cpp
index 343ae98..573c78c 100644
--- a/matchblox/engine/C_Box.cpp
+++ b/matchblox/engine/C_Box.cpp
@@ -66,7 +66,7 @@ void C_Box::RandomizeTiles()
}
}
-void C_Box::Render()
+void C_Box::Render(GLint f_iTexLocation)
{
//
glPushMatrix();
@@ -75,7 +75,7 @@ void C_Box::Render()
TransRotateScale();
//render the box
- C_3DObject::Render();
+ C_3DObject::Render(f_iTexLocation);
//render the tiles
@@ -89,7 +89,7 @@ void C_Box::Render()
//tile with a hole
glPushMatrix();
m_pTiles[l_iTileIndex]->TransRotateScale();
- m_pTiles[l_iTileIndex]->Render();
+ m_pTiles[l_iTileIndex]->Render(f_iTexLocation);
glPopMatrix();
}
else
@@ -101,7 +101,7 @@ void C_Box::Render()
m_LowLeftTilePos.z - (double)y * m_dTileSize);
glPushMatrix();
m_pTiles[4]->TransRotateScale();
- m_pTiles[4]->Render();
+ m_pTiles[4]->Render(f_iTexLocation);
glPopMatrix();
}
}