Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10410 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 27, 2007, 7:30:45 PM (18 years ago)
Author:
patrick
Message:

the track now is been drawn for the camera

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

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

    r10403 r10410  
    6666void Camera::init()
    6767{
     68  this->toList( OM_COMMON);
    6869  //this->setName("camera");
    6970  this->target = new CameraTarget();
     
    225226  //iterate(float dt, translate, target)
    226227  target->translate(dt);
     228}
     229
     230
     231void Camera::draw() const
     232{
     233  if( this->entityTrack != NULL)
     234    this->entityTrack->drawGraph();
    227235}
    228236
  • trunk/src/world_entities/camera.h

    r10386 r10410  
    7575  Vector* VectorProd(Vector* v1, Vector* v2);
    7676  void Rotate();
     77  void draw() const;
    7778  void tick(float dt);
    7879  void apply ();
Note: See TracChangeset for help on using the changeset viewer.