Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 13, 2005, 7:23:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Text is now too a Element2D, and it does not need the TextEngine anymore to draw it.
optimizing…

File:
1 edited

Legend:

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

    r4836 r4850  
    7474{
    7575  TextEngine::getInstance()->deleteText(this);
    76 }
    77 
    78 /**
    79  *  tells the Text, that it should folow a PNode
    80  * @param bindNode: the node to bind this text to
    81 */
    82 void Text::setBindNode(PNode* bindNode)
    83 {
    84   this->bindNode = bindNode;
    8576}
    8677
     
    185176
    186177/**
    187  *  draws the Font
     178 *  draws the Text
    188179*/
    189180void Text::draw() const
     
    217208  // setting the Blending effects
    218209  glColor4f(1.0f,1.0f,1.0f, this->blending);
     210  glEnable(GL_BLEND);
     211  glEnable(GL_TEXTURE_2D);
    219212  glBlendFunc(GL_SRC_ALPHA, GL_ONE);
    220213
Note: See TracChangeset for help on using the changeset viewer.