Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 5, 2005, 8:59:01 PM (19 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/lib/graphics/graphics_engine.h

    r4065 r4066  
    1111
    1212#include "glincl.h"
    13 
    1413#include "base_object.h"
    1514
    16 // FORWARD DEFINITION \\
     15
     16class Text;
    1717
    1818
     
    4545  static GLint viewPort[4];
    4646 
    47   void displayFPS(bool dislay);
     47  void tick(float dt);
     48  void displayFPS(bool display);
    4849
    4950
     
    5960  bool fullscreen;
    6061  Uint32 videoFlags;
     62 
     63  bool bDisplayFPS;  //!< is true if the fps should be displayed
     64  float currentFPS;  //!< the current frame rate: frames per seconds
     65  float maxFPS;      //!< maximal frame rate we ever got since start of the game
     66  float minFPS;      //!< minimal frame rate we ever got since start
     67
     68  Text* geText;
    6169
    6270  SDL_Rect **videoModes;
Note: See TracChangeset for help on using the changeset viewer.