Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3846 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Apr 17, 2005, 1:32:39 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: now the Text is real sexy, smashing in and smoothly fading out

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r3832 r3846  
    373373            this->glmis->step();
    374374
    375             this->testText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
    376             testText->setText("We've got Hostiles!");
    377             testText->setBlending(1.0);
    378             testText->setBindNode(tn);
    379 
    380             //aTest* test = new aTest();
    381             //tAnim<aTest>* testAnim = new tAnim<aTest>(test, &aTest::littleDebug);
    382             tAnim<Text>* testAnim = new tAnim<Text>(testText, &Text::setBlending);
    383            
    384             testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
    385             testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
    386             testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
    387            
    388             testAnim->addKeyFrame(0.0, 1.0, ANIM_COSINE);
    389             testAnim->addKeyFrame(1.0, 1.0, ANIM_COSINE);         
    390            
    391             testAnim->addKeyFrame(0.0, 1.0, ANIM_SINE);
    392             testAnim->addKeyFrame(1.0, 1.0, ANIM_SINE);
    393                     testAnim->addKeyFrame(0.0, 1.0, ANIM_NEG_EXP);
    394             testAnim->addKeyFrame(1.0, 1.0, ANIM_NEG_EXP);
    395            
    396             testAnim->setInfinity(ANIM_INF_REWIND);
    397375            break;
    398376          }
Note: See TracChangeset for help on using the changeset viewer.