Changeset 1477 for code/branches
- Timestamp:
- May 29, 2008, 10:22:53 AM (16 years ago)
- Location:
- code/branches/network/src
- Files:
-
- 4 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 -
code/branches/network/src/orxonox/GraphicsEngine.h
r1466 r1477 72 72 int getWindowWidth() const; 73 73 int getWindowHeight() const; 74 float getWindowAspectRatio() const; 74 75 float getAverageFPS() const 75 76 { if (renderWindow_) return this->renderWindow_->getAverageFPS(); else return 0.0f; } -
code/branches/network/src/orxonox/console/InGameConsole.cc
r1473 r1477 47 47 48 48 #define LINES 30 49 #define CHAR_WIDTH1 7. 34 // fix this please - determine the char-width dynamically49 #define CHAR_WIDTH1 7.78 //34 // fix this please - determine the char-width dynamically 50 50 #define CHAR_WIDTH2 8.28 // fix this please - determine the char-width dynamically 51 #define CHAR_WIDTH3 7. 78 // fix this please - determine the char-width dynamically51 #define CHAR_WIDTH3 7.80 //78 // fix this please - determine the char-width dynamically 52 52 53 53 namespace orxonox … … 465 465 static std::string char2 = "Z4"; 466 466 467 if (pos > maxCharsPerLine_)467 if (pos > (int)maxCharsPerLine_) 468 468 pos = maxCharsPerLine_; 469 469 else if (pos < 0) -
code/branches/network/src/util/String.cc
r1446 r1477 112 112 { 113 113 quotecount++; 114 quote++; 114 115 } 115 116
Note: See TracChangeset
for help on using the changeset viewer.