Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10391 in orxonox.OLD for trunk/src/world_entities/camera.cc


Ignore:
Timestamp:
Jan 26, 2007, 7:12:37 PM (19 years ago)
Author:
patrick
Message:

more on camera loading and many planet properties

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r10389 r10391  
    4141{
    4242  this->registerObject(this, Camera::_objectList);
     43
    4344  this->init();
    4445}
    4546
    46 /*
     47
    4748Camera::Camera(const TiXmlElement* root)
    4849{
    4950  this->registerObject(this, Camera::_objectList);
     51
     52  if( root != NULL)
     53    this->loadParams(root);
     54
    5055  this->init();
    51   this->loadParams(root);
    52 }
    53 */
     56
     57}
     58
    5459
    5560/**
     
    8792  this->viewLeftDistance = 10;
    8893
    89   //this->loadParams(doc.RootElement());
    90 
    9194  this->setViewMode(Camera::ViewNormal);
    9295
    9396  this->setParentMode(PNODE_ALL);
    9497  this->eventHandling = true;
    95  
     98
    9699  //add to track
    97100  if(this->entityTrack)
     
    213216  if (fabsf(tmpFovy) > 0.01)
    214217    this->fovy += tmpFovy * fabsf(dt);
    215    
     218
    216219  if(this->entityTrack)
    217220    this->entityTrack->tick(dt);
     
    302305{
    303306  // Do the PNode loading stuff
    304   PNode::loadParams(root);
     307  WorldEntity::loadParams(root);
    305308
    306309  LoadParam(root, "viewTopFovy", this, Camera, setViewTopFovy);
Note: See TracChangeset for help on using the changeset viewer.