Changeset 3790 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Apr 13, 2005, 12:33:07 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r3763 r3790 33 33 #include "terrain.h" 34 34 #include "light.h" 35 #include "text_engine.h" 35 36 36 37 #include "track_manager.h" … … 40 41 #include "command_node.h" 41 42 #include "glmenu_imagescreen.h" 42 #include "fontset.h"43 43 #include "list.h" 44 44 … … 157 157 delete this->lightMan; 158 158 delete this->trackManager; 159 TextEngine::getInstance()->flush(); 159 160 160 161 delete this->simpleAnimation; 161 162 //delete garbagecollecor 162 163 //delete animator 164 165 163 166 } 164 167 … … 207 210 { 208 211 // initializing Font 209 testFont = new FontSet();210 testFont->buildFont("../data/pictures/font.tga");211 212 this->glmis->step(); 212 213 213 // initializing the TrackManager 214 214 trackManager = TrackManager::getInstance(); … … 309 309 this->spawn (this->localPlayer); 310 310 /*monitor progress*/ 311 //this->glmis->step(); 311 //this->glmis->step(); 312 312 this->glmis->step(); 313 313 … … 363 363 this->glmis->step(); 364 364 365 this->testText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0); 366 testText->setText("TEXT rocks"); 367 testText->setBlending(1.0); 368 testText->setBindNode(tn); 369 370 /* 371 tmpAnim = new Animation<Text>(testText, &Text::setBlending); 372 tmpAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR); 373 tmpAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR); 374 tmpAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR); 375 tmpAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR); 376 tmpAnim->setInfinity(ANIM_INF_CONSTANT, ANIM_INF_REWIND); 377 */ 365 378 break; 366 379 } … … 553 566 glNewList (objectList, GL_COMPILE); 554 567 555 trackManager->drawGraph(.01);568 // trackManager->drawGraph(.01); 556 569 trackManager->debug(2); 557 570 glEndList(); … … 740 753 glCallList (objectList); 741 754 742 testFont->printText(0, 0, 1, "orxonox_" PACKAGE_VERSION); 743 755 TextEngine::getInstance()->draw(); 744 756 lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes // 745 757 } … … 892 904 { 893 905 float fps = 1000/dt; 894 PRINTF(3)("fps = %f\n", fps); 906 907 // temporary, only for showing how fast the text-engine is 908 char tmpChar[20]; 909 sprintf(tmpChar, "fps: %4.0f", fps); 895 910 } 896 911 else … … 924 939 this->garbageCollector->tick(seconds); 925 940 this->simpleAnimation->tick(seconds); 941 926 942 } 927 943 this->lastFrame = currentFrame; -
orxonox/trunk/src/story_entities/world.h
r3727 r3790 21 21 class Skysphere; 22 22 class LightManager; 23 class FontSet;24 23 class Terrain; 25 24 class GarbageCollector; 26 25 class SimpleAnimation; 26 27 class Text; 27 28 28 29 //! The game world Interface … … 96 97 bool bPause; //!< pause mode 97 98 98 FontSet* testFont; //!< A test Font. \todo fix this, so it is for real.99 99 GLMenuImageScreen* glmis; //!< The Level-Loader Display 100 101 Text* testText; //!< A text to Test the TextEngine; 100 102 101 103 char* worldName; //!< The name of this World
Note: See TracChangeset
for help on using the changeset viewer.