Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 1, 2005, 11:51:44 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: graphicsEngine and TextEngine documented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/graphics/graphics_engine.h

    r4381 r4458  
    1818class Text;
    1919
    20 
     20//! class to handle graphics
     21/**
     22   handles graphical SDL-initialisation, textures, resolutions, and so on
     23*/   
    2124class GraphicsEngine : public BaseObject
    2225{
     
    3235
    3336  /** \returns the x resolution */
    34   inline int getResolutionX(void) {return this->resolutionX;}
     37  inline int getResolutionX(void) const {return this->resolutionX;}
    3538  /** \returns the y resolution */
    36   inline int getResolutionY(void) {return this->resolutionY;}
     39  inline int getResolutionY(void) const {return this->resolutionY;}
    3740  /** \returns the Bits Per Pixel */
    38   inline int getbbp(void) {return this->bitsPerPixel;}
     41  inline int getbbp(void) const {return this->bitsPerPixel;}
    3942  int resolutionChanged(SDL_ResizeEvent* resizeInfo);
    4043  void listModes(void);
     
    5861  static GraphicsEngine* singletonRef;
    5962
     63 private:
     64  SDL_Surface*   screen;          //!< the screen we draw to
     65  int            resolutionX;     //!< the X-resoultion of the screen
     66  int            resolutionY;     //!< the Y-resolution of the screen
     67  int            bitsPerPixel;    //!< the bits per pixels of the screen
     68  bool           fullscreen;      //!< if we are in fullscreen mode
     69  Uint32         videoFlags;      //!< flags for video
     70  SDL_Rect**     videoModes;      //!< list of resolutions
     71 
     72  bool           bDisplayFPS;     //!< is true if the fps should be displayed
     73  float          currentFPS;      //!< the current frame rate: frames per seconds
     74  float          maxFPS;          //!< maximal frame rate we ever got since start of the game
     75  float          minFPS;          //!< minimal frame rate we ever got since start
    6076
    61   SDL_Surface* screen;
    62   int resolutionX;
    63   int resolutionY;
    64   int bitsPerPixel;
    65   bool fullscreen;
    66   Uint32 videoFlags;
    67  
    68   bool bDisplayFPS;  //!< is true if the fps should be displayed
    69   float currentFPS;  //!< the current frame rate: frames per seconds
    70   float maxFPS;      //!< maximal frame rate we ever got since start of the game
    71   float minFPS;      //!< minimal frame rate we ever got since start
     77  Text*          geTextCFPS;      //!< Text for the current FPS
     78  Text*          geTextMaxFPS;    //!< Text for the max FPS
     79  Text*          geTextMinFPS;    //!< Text for the min FPS
    7280
    73   Text* geTextCFPS;
    74   Text* geTextMaxFPS;
    75   Text* geTextMinFPS;
    76 
    77   SDL_Rect **videoModes;
    7881};
    7982
Note: See TracChangeset for help on using the changeset viewer.