Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7451 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Apr 29, 2006, 9:49:11 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Test the MultiLineText in this revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/multi_line_text.cc

    r7450 r7451  
    8080
    8181  glBegin(GL_QUADS);
    82   for (unsigned int i = 0; i < this->getText().size(); i++)
     82  for (unsigned int i = 0; i < this->getText().size(); ++i)
    8383  {
    84     if (unlikely(tmpGlyph->character == '\n' || i == this->lineEnds[lineNumber]))
     84    if (unlikely(this->getText()[i] == '\n' || i == this->lineEnds[lineNumber]))
    8585    {
    86     // go to the next Line.
    87       lineNumber++;
     86      // go to the next Line.
     87      ++lineNumber;
    8888      posX = 0.0f;
    8989      posY += this->lineSpacing + this->getFont()->getMaxHeight();
     
    117117{
    118118  this->lineEnds.clear();
     119  this->lineEnds.push_back(0);
    119120  float width = 0.0f;
    120121  // TODO make size local to this (not using the one from Element2D.
Note: See TracChangeset for help on using the changeset viewer.