Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2008, 10:22:53 AM (16 years ago)
Author:
landauf
Message:
  • small char-length tweaking for my system (because i have to show the shell)
  • fixed bug causing orxonox to loop forever when loading the config file (you'll like this, felix)
File:
1 edited

Legend:

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

    r1466 r1477  
    5454
    5555namespace orxonox {
    56  
     56
    5757  SetConsoleCommandShortcut(GraphicsEngine, CompositorBloomOn).setAccessLevel(AccessLevel::User);
    5858  SetConsoleCommandShortcut(GraphicsEngine, CompositorMotionBlurOn).setAccessLevel(AccessLevel::User);
     
    303303    else
    304304      return 0;
     305  }
     306
     307  /**
     308    @brief Returns the window aspect ratio height/width.
     309    @return The ratio
     310  */
     311  float GraphicsEngine::getWindowAspectRatio() const
     312  {
     313    if (this->renderWindow_)
     314        return (float)this->renderWindow_->getHeight() / (float)this->renderWindow_->getWidth();
     315    else
     316        return 1.0f;
    305317  }
    306318
Note: See TracChangeset for help on using the changeset viewer.