Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2008, 12:05:03 PM (15 years ago)
Author:
scheusso
Message:

merged lodfinal (planet) branch to presentation branch

Location:
code/branches/presentation
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • code/branches/presentation

  • code/branches/presentation/src/orxonox/objects/worldentities/Planet.cc

    r2412 r2420  
    7777        {
    7878            Real distance = this->getPosition().distance( activeCamera->getWorldPosition() );
    79             COUT(2) << distance << std::endl;
     79//             COUT(2) << distance << std::endl;
    8080            Real planetRadius = this->getScale();
    8181       
     
    119119    void Planet::changedMesh()
    120120    {
    121 COUT(0) << "changedMesh callback -===================" << endl;
    122121        if (this->mesh_.getEntity())
    123122            this->getNode()->detachObject(this->mesh_.getEntity());
     
    158157
    159158    void Planet::registerVariables(){
    160         REGISTERSTRING(this->atmosphere_, direction::toclient);
    161         REGISTERSTRING(this->meshSrc_, direction::toclient, new NetworkCallback<Planet>(this, &Planet::changedMesh));
    162         REGISTERDATA(this->bCastShadows_, direction::toclient, new NetworkCallback<Planet>(this, &Planet::changedShadows));
    163         REGISTERDATA(this->atmosphereSize, direction::toclient);
    164         REGISTERDATA(this->imageSize, direction::toclient);
     159        registerVariable(this->atmosphere_, variableDirection::toclient);
     160        registerVariable(this->meshSrc_, variableDirection::toclient, new NetworkCallback<Planet>(this, &Planet::changedMesh));
     161        registerVariable(this->bCastShadows_, variableDirection::toclient, new NetworkCallback<Planet>(this, &Planet::changedShadows));
     162        registerVariable(this->atmosphereSize, variableDirection::toclient);
     163        registerVariable(this->imageSize, variableDirection::toclient);
    165164    }
    166165
Note: See TracChangeset for help on using the changeset viewer.