Changeset 7737 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- May 19, 2006, 11:38:34 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
r7457 r7737 32 32 33 33 this->lineSpacing = 1.0f; 34 this->lineCount = 0; 34 35 this->setLineWidth(100.0f); 35 36 } … … 141 142 width += this->getFont()->getGlyphArray()[this->getText()[i]]->advance; 142 143 } 144 145 this->lineCount = lineEnds.size()+1; 143 146 this->setSizeY2D((this->lineEnds.size()+1) * (this->lineSpacing + this->getFont()->getMaxHeight())); 144 147 } -
trunk/src/lib/graphics/text_engine/multi_line_text.h
r7454 r7737 26 26 /** @returns the LineSpacing */ 27 27 inline float getLineSpacing() const { return this->lineSpacing; }; 28 inline unsigned int getLineCount() const { return this->lineCount; }; 28 29 29 30 virtual void draw() const; … … 36 37 float lineSpacing; 37 38 std::vector<unsigned int> lineEnds; 39 unsigned int lineCount; 38 40 }; 39 41
Note: See TracChangeset
for help on using the changeset viewer.