Changeset 111 for Swollen/swollen/hud.cpp
- Timestamp:
- Jun 21, 2005, 2:21:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Swollen/swollen/hud.cpp
r33 r111 47 47 _time->setText("t = 0.0"); 48 48 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 49 59 // state 50 60 osg::StateSet *state = _projection->getOrCreateStateSet(); … … 60 70 textnode->addDrawable( _title ); 61 71 textnode->addDrawable( _time ); 72 textnode->addDrawable( _record ); 62 73 xfm->addChild( textnode ); 63 74 _projection->addChild( xfm ); … … 84 95 } 85 96 97 98 void HeadsUpDisplay::setRecordingMode( char *s ) 99 { 100 _record->setText(s); 101 } 102
Note: See TracChangeset
for help on using the changeset viewer.