Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 11, 2005, 4:16:57 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: now the Resource Manager also checks for special parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc

    r3774 r3775  
    834834  Font* tmpFont;
    835835  Text* newText;
    836  
    837 
    838   tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME);
     836  Vector tmpVec;
     837
     838  tmpVec = Vector(r, g, b);
     839  tmpFont = (Font*)ResourceManager::getInstance()->load(fontFile, TTF, RP_GAME, &fontSize, &tmpVec);
    839840  if (!tmpFont)
    840841    {
     
    861862  ResourceManager::getInstance()->unload(text->font);
    862863  textList->remove(text);
    863 
    864864}
    865865
Note: See TracChangeset for help on using the changeset viewer.