Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 24, 2008, 10:08:42 PM (17 years ago)
Author:
rgrieder
Message:
  • moved OrxonoxPlatform.h to util (didn't even notice util recently)
  • therefore was able to define uint32_t, etc. for all our libs in OrxonoxPlatform.h
  • made use of OgreRenderWindow::getAverageFPS() in HUD
Location:
code/branches/network/src/orxonox/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/network/src/orxonox/hud/HUD.cc

    r1411 r1414  
    3838#include "core/ConsoleCommand.h"
    3939#include "objects/SpaceShip.h"
     40#include "GraphicsEngine.h"
    4041#include "BarOverlayElement.h"
    4142#include "RadarObject.h"
     
    129130
    130131        nav->update();
    131     }
    132132
    133     void HUD::setFPS(float fps){
     133        float fps = GraphicsEngine::getSingleton().getAverageFPS();
    134134        fpsText->setCaption("FPS: " + Ogre::StringConverter::toString(fps));
    135135    }
  • code/branches/network/src/orxonox/hud/HUD.h

    r1411 r1414  
    5858      public:
    5959        virtual void tick(float);
    60         void setFPS(float fps);
    6160        void addRadarObject(Vector3 pos);
    6261        RadarObject* getFirstRadarObject();
Note: See TracChangeset for help on using the changeset viewer.