Changeset 9147 in orxonox.OLD for branches/terrain/src/lib/graphics/importer/terrain/terrain.cc
- Timestamp:
- Jul 4, 2006, 3:45:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/graphics/importer/terrain/terrain.cc
r9140 r9147 97 97 pTerrainPage newPage = new TerrainPage( const_cast<Terrain*>( this ), _xOffset, _zOffset ); 98 98 newPage->setScale( scale ); 99 newPage->setPosition( Triple( scale.x*_xOffset, 0.0f, scale.z*_zOffset ) );99 newPage->setPosition( Vector( scale.x*_xOffset, 0.0f, scale.z*_zOffset ) ); 100 100 newPage->calculateErrors(); 101 101 return newPage; … … 248 248 //Due to some reason, the OpenGL implementors chose the plane equation 249 249 //to an array of doubles. So we will make them happy. 250 double farPlane[] = { far.n.x, far.n.y, far.n.z, far. d};250 double farPlane[] = { far.n.x, far.n.y, far.n.z, far.k }; 251 251 glEnable( GL_CLIP_PLANE0 ); 252 252 glClipPlane( GL_CLIP_PLANE0, farPlane ); … … 419 419 } 420 420 421 void Terrain::getAltitude( Triple& _alt, Triple& _normal )421 void Terrain::getAltitude( Vector& _alt, Vector& _normal ) 422 422 { 423 423 float xScaled = _alt.x / scale.x, zScaled = _alt.z / scale.z;
Note: See TracChangeset
for help on using the changeset viewer.