Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9396 in orxonox.OLD for branches/proxy/src/lib/graphics


Ignore:
Timestamp:
Jul 23, 2006, 10:07:23 PM (18 years ago)
Author:
patrick
Message:

committing my weekends work: 2100 lines :D

  • proxy server now accepts and synchronizes clients like a master server
  • network manager got different network setup interface
  • network stream got different constructure scheme
  • permissions checking and algorithm extended and changed
  • starting ability to connect to multiple network nodes at the same time
  • some very much smaller changes here and there
Location:
branches/proxy/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/graphics/graphics_engine.cc

    r9351 r9396  
    6666  this->bDisplayFPS = false;
    6767  this->bAntialiasing = false;
     68  this->bDedicated = false;
    6869  this->minFPS = 9999;
    6970  this->maxFPS = 0;
     
    163164  MultiType textures = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO_ADVANCED, CONFIG_NAME_TEXTURES, "1");
    164165  Texture::setTextureEnableState(textures.getBool());
     166
     167  // check it is a dedicated network node: so no drawings are made
     168  MultiType dedicated = Preferences::getInstance()->getString(CONFIG_SECTION_VIDEO, CONFIG_NAME_NO_RENDER, "0");
     169  this->bDedicated = dedicated.getBool();
    165170
    166171  // searching for a usefull resolution
     
    603608}
    604609
     610/**
     611 * this draws the graphics engines graphics effecs
     612 */
    605613void GraphicsEngine::draw() const
    606614{
    607   //  LightManager::getInstance()->draw();
    608 
    609   if (this->graphicsEffects != NULL)
     615  if( this->graphicsEffects != NULL)
    610616  {
    611617    //draw the graphics effects
  • branches/proxy/src/lib/graphics/graphics_engine.h

    r9351 r9396  
    4646    void toggleFullscreen();
    4747    static void setBackgroundColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha = 1.0);
     48    inline bool isDedicated() { return this->bDedicated; }
    4849
    4950    inline void setAntialiasing(bool flag) { this->bAntialiasing = flag; }
     
    114115    bool                       particlesEnabled;   //!< If particles should be enabled.
    115116    bool                       bAntialiasing;      //!< true if antialiasing enabled
     117    bool                       bDedicated;         //!< true if this server is a dedicated server and should not render the scene
    116118
    117119    int                        particlesValue;     //!< How many particles
Note: See TracChangeset for help on using the changeset viewer.