Changeset 1615 for code/branches/hud/src/orxonox/overlays/hud/HUDRTRText.cc
- Timestamp:
- Jun 22, 2008, 12:06:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/hud/HUDRTRText.cc
r1614 r1615 35 35 namespace orxonox 36 36 { 37 CreateFactory(HUDRTRText);37 CreateFactory(HUDRTRText); 38 38 39 HUDRTRText::HUDRTRText()40 {41 RegisterObject(HUDRTRText);42 }39 HUDRTRText::HUDRTRText() 40 { 41 RegisterObject(HUDRTRText); 42 } 43 43 44 HUDRTRText::~HUDRTRText() 45 { 46 if (this->isInitialized()) 44 HUDRTRText::~HUDRTRText() 47 45 { 48 46 } 49 }50 47 51 void HUDRTRText::tick(float dt)52 {53 float rtr = GraphicsEngine::getSingleton().getAverageRTR();54 this->text_->setCaption(this->getCaption() + convertToString(rtr));55 }48 void HUDRTRText::tick(float dt) 49 { 50 float rtr = GraphicsEngine::getSingleton().getAverageRTR(); 51 this->text_->setCaption(this->getCaption() + convertToString(rtr)); 52 } 56 53 }
Note: See TracChangeset
for help on using the changeset viewer.