Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7754 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
May 21, 2006, 5:25:58 PM (19 years ago)
Author:
bensch
Message:

trunk: small properties

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  
    2626 * @param type The renderType to display this font in
    2727 */
    28 MultiLineText::MultiLineText(const std::string& fontFile, unsigned int textSize)
     28MultiLineText::MultiLineText(const std::string& fontFile, unsigned int textSize, unsigned int lineWidth)
    2929  : Text(fontFile, textSize)
    3030{
     
    3333  this->lineSpacing = 1.0f;
    3434  this->lineCount = 0;
    35   this->setLineWidth(100.0f);
     35  this->setLineWidth(lineWidth);
    3636}
    3737
     
    122122}
    123123
     124
    124125/**
    125126 * @brief setting up the Text-Width if DYNAMIC
  • trunk/src/lib/graphics/text_engine/multi_line_text.h

    r7737 r7754  
    1515{
    1616  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);
    1818
    1919    // Setup:
Note: See TracChangeset for help on using the changeset viewer.