Changeset 7754 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- May 21, 2006, 5:25:58 PM (19 years ago)
- Location:
- trunk/src/lib/graphics/text_engine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/multi_line_text.cc
r7738 r7754 26 26 * @param type The renderType to display this font in 27 27 */ 28 MultiLineText::MultiLineText(const std::string& fontFile, unsigned int textSize )28 MultiLineText::MultiLineText(const std::string& fontFile, unsigned int textSize, unsigned int lineWidth) 29 29 : Text(fontFile, textSize) 30 30 { … … 33 33 this->lineSpacing = 1.0f; 34 34 this->lineCount = 0; 35 this->setLineWidth( 100.0f);35 this->setLineWidth(lineWidth); 36 36 } 37 37 … … 122 122 } 123 123 124 124 125 /** 125 126 * @brief setting up the Text-Width if DYNAMIC -
trunk/src/lib/graphics/text_engine/multi_line_text.h
r7737 r7754 15 15 { 16 16 public: 17 MultiLineText(const std::string& fontFile = "", unsigned int fontSize = TEXT_DEFAULT_SIZE );17 MultiLineText(const std::string& fontFile = "", unsigned int fontSize = TEXT_DEFAULT_SIZE, unsigned int lineWidth = 100.0); 18 18 19 19 // Setup:
Note: See TracChangeset
for help on using the changeset viewer.