Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 4, 2006, 3:45:43 PM (18 years ago)
Author:
ponder
Message:

To rid of the triple and plane struct in types.h. now using the generic ones

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/terrain/src/lib/graphics/importer/terrain/terrain.cc

    r9140 r9147  
    9797        pTerrainPage newPage = new TerrainPage( const_cast<Terrain*>( this ), _xOffset, _zOffset );
    9898        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 ) );
    100100        newPage->calculateErrors();
    101101        return newPage;
     
    248248        //Due to some reason, the OpenGL implementors chose the plane equation
    249249        //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 };
    251251        glEnable( GL_CLIP_PLANE0 );
    252252        glClipPlane( GL_CLIP_PLANE0, farPlane );
     
    419419}
    420420
    421 void Terrain::getAltitude( Triple& _alt, Triple& _normal )
     421void Terrain::getAltitude( Vector& _alt, Vector& _normal )
    422422{
    423423        float xScaled = _alt.x / scale.x, zScaled = _alt.z / scale.z;
Note: See TracChangeset for help on using the changeset viewer.