Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6742 in orxonox.OLD


Ignore:
Timestamp:
Jan 25, 2006, 10:48:18 PM (18 years ago)
Author:
patrick
Message:

network: single player control works again, graphics engine effects registration

Location:
branches/network/src/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/graphics/graphics_engine.h

    r6522 r6742  
    2222class SubString;
    2323class WorldEntity;
     24class GraphicsEffect;
    2425
    2526//! class to handle graphics
     
    8283    void process(const Event  &event);
    8384
     85    void loadGraphicsEffect(GraphicsEffect* effect);
     86    void unloadGraphicsEffect(GraphicsEffect* effect);
     87
     88
     89
    8490  private:
    8591    GraphicsEngine();
     
    9197
    9298  private:
    93     static GraphicsEngine*  singletonRef;       //!< Pointer to the only instance of this Class
    94     bool                    isInit;             //!< if the GraphicsEngine is initialized.
     99    static GraphicsEngine*     singletonRef;       //!< Pointer to the only instance of this Class
     100    bool                       isInit;             //!< if the GraphicsEngine is initialized.
    95101
    96102    // state.
    97     SDL_Surface*            screen;             //!< the screen we draw to
    98     int                     resolutionX;        //!< the X-resoultion of the screen
    99     int                     resolutionY;        //!< the Y-resolution of the screen
    100     int                     bitsPerPixel;       //!< the bits per pixels of the screen
    101     Uint32                  fullscreenFlag;     //!< if we are in fullscreen mode
    102     Uint32                  videoFlags;         //!< flags for video
    103     SDL_Rect**              videoModes;         //!< list of resolutions
     103    SDL_Surface*               screen;             //!< the screen we draw to
     104    int                        resolutionX;        //!< the X-resoultion of the screen
     105    int                        resolutionY;        //!< the Y-resolution of the screen
     106    int                        bitsPerPixel;       //!< the bits per pixels of the screen
     107    Uint32                     fullscreenFlag;     //!< if we are in fullscreen mode
     108    Uint32                     videoFlags;         //!< flags for video
     109    SDL_Rect**                 videoModes;         //!< list of resolutions
    104110
    105     bool                    fogEnabled;         //!< If Fog should be enabled.
    106     bool                    shadowsEnabled;     //!< If Shadows should be enabled.
    107     bool                    particlesEnabled;   //!< If particles should be enabled.
    108     int                     particlesValue;     //!< How many particles
    109     int                     textureQuality;     //!< the quality of Textures
    110     int                     filteringMethod;    //!< The filtering Method of textures.
    111     int                     modelQuality;       //!< The quality of the Models loaded.
    112     int                     antialiasingDepth;  //!< the Depth of the AntiAlias-Filter.
     111    bool                       fogEnabled;         //!< If Fog should be enabled.
     112    bool                       shadowsEnabled;     //!< If Shadows should be enabled.
     113    bool                       particlesEnabled;   //!< If particles should be enabled.
     114    int                        particlesValue;     //!< How many particles
     115    int                        textureQuality;     //!< the quality of Textures
     116    int                        filteringMethod;    //!< The filtering Method of textures.
     117    int                        modelQuality;       //!< The quality of the Models loaded.
     118    int                        antialiasingDepth;  //!< the Depth of the AntiAlias-Filter.
    113119
    114120    // HARDWARE-Settings:
    115     char*                   hwRenderer;         //!< HW-renderer-string
    116     char*                   hwVendor;           //!< HW-vendor-string
    117     char*                   hwVersion;          //!< HW-version-string
    118     SubString*              hwExtensions;       //!< All suported Extensions.
     121    char*                      hwRenderer;         //!< HW-renderer-string
     122    char*                      hwVendor;           //!< HW-vendor-string
     123    char*                      hwVersion;          //!< HW-version-string
     124    SubString*                 hwExtensions;       //!< All suported Extensions.
    119125
    120126    // FPS-related
    121     bool                    bDisplayFPS;        //!< is true if the fps should be displayed
    122     float                   currentFPS;         //!< the current frame rate: frames per seconds
    123     float                   maxFPS;             //!< maximal frame rate we ever got since start of the game
    124     float                   minFPS;             //!< minimal frame rate we ever got since start.
     127    bool                       bDisplayFPS;        //!< is true if the fps should be displayed
     128    float                      currentFPS;         //!< the current frame rate: frames per seconds
     129    float                      maxFPS;             //!< maximal frame rate we ever got since start of the game
     130    float                      minFPS;             //!< minimal frame rate we ever got since start.
     131
     132    std::list<GraphicsEffect*> graphicsEffects;    //!< list of graphics effects
     133
    125134
    126135#ifndef NO_TEXT
  • branches/network/src/lib/network/synchronizeable.cc

    r6695 r6742  
    3535{
    3636  this->setClassID(CL_SYNCHRONIZEABLE, "Synchronizeable");
    37   this->owner = 0;
     37  this->owner = -1;
    3838  this->state = 0;
    3939  this->hostID = SharedNetworkData::getInstance()->getHostID();
Note: See TracChangeset for help on using the changeset viewer.