Changeset 1477 for code/branches/network/src/orxonox/GraphicsEngine.cc
- Timestamp:
- May 29, 2008, 10:22:53 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/GraphicsEngine.cc
r1466 r1477 54 54 55 55 namespace orxonox { 56 56 57 57 SetConsoleCommandShortcut(GraphicsEngine, CompositorBloomOn).setAccessLevel(AccessLevel::User); 58 58 SetConsoleCommandShortcut(GraphicsEngine, CompositorMotionBlurOn).setAccessLevel(AccessLevel::User); … … 303 303 else 304 304 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; 305 317 } 306 318
Note: See TracChangeset
for help on using the changeset viewer.