Ignore:
Timestamp:
Jun 21, 2005, 2:21:44 PM (18 years ago)
Author:
darran
Message:
  • refactoring to facilitate storing state
  • segfaulting at the moment ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Swollen/swollen/hud.cpp

    r33 r111  
    4747    _time->setText("t = 0.0");
    4848
     49    // recording mode text
     50    _record = new osgText::Text;
     51    _record->setFont(font);
     52    _record->setColor(osg::Vec4(DEF_HUD_COLOUR) );
     53    _record->setCharacterSize(30);
     54    _record->setPosition(osg::Vec3(600,20,0));
     55    _record->setFontResolution(40,40);
     56    _record->setText("");
     57
     58
    4959    // state
    5060    osg::StateSet *state = _projection->getOrCreateStateSet();
     
    6070    textnode->addDrawable( _title );
    6171    textnode->addDrawable( _time );
     72    textnode->addDrawable( _record );
    6273    xfm->addChild( textnode );
    6374    _projection->addChild( xfm );
     
    8495}
    8596
     97
     98void HeadsUpDisplay::setRecordingMode( char *s )
     99{
     100    _record->setText(s);
     101}
     102
Note: See TracChangeset for help on using the changeset viewer.