Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2005, 8:59:01 PM (20 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: now it displays the fps, will do this better an look for a good font.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/md2_loader/src/story_entities/world.cc

    r4015 r4066  
    4040#include "garbage_collector.h"
    4141#include "animation_player.h"
     42#include "graphics_engine.h"
    4243
    4344#include "command_node.h"
     
    258259  this->localCamera = new Camera();
    259260  this->localCamera->setName ("camera");
     261 
     262  GraphicsEngine::getInstance()->displayFPS(true);
    260263}
    261264
     
    11151118      this->localCamera->tick(this->dt);
    11161119      this->garbageCollector->tick(seconds);
    1117 
    1118       AnimationPlayer::getInstance()->tick(seconds);
     1120         
     1121          /* actualy the Graphics Engine should tick the world not the other way around...
     1122                 but since we like the things not too complicated we got it this way around
     1123                 until there is need or time to do it the other way around.
     1124                 \todo: GraphicsEngine ticks world: separation of processes and data...
     1125          */
     1126      GraphicsEngine::getInstance()->tick(seconds);
     1127          AnimationPlayer::getInstance()->tick(seconds);
    11191128    }
    11201129  this->lastFrame = currentFrame;
Note: See TracChangeset for help on using the changeset viewer.