Changeset 3846 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Apr 17, 2005, 1:32:39 AM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/animation.h
r3833 r3846 239 239 if (localTime >= this->currentKeyFrame->duration) 240 240 { 241 // switching to the next Key-Frame 242 this->currentKeyFrame = this->nextKeyFrame; 241 243 this->localTime = 0; 244 // checking, if we should still Play the animation 242 245 if (this->currentKeyFrame == this->keyFrameList->lastElement()) 243 switch (this->postInfinity)244 {245 case ANIM_INF_CONSTANT:246 this->bRunning = false;247 break;248 case ANIM_INF_REWIND:249 break;250 }251 //this->currentKeyFrame = this->keyFrameList->nextElement(this->currentKeyFrame);252 this->currentKeyFrame = this->nextKeyFrame;246 { 247 switch (this->postInfinity) 248 { 249 case ANIM_INF_CONSTANT: 250 this->bRunning = false; 251 break; 252 case ANIM_INF_REWIND: 253 break; 254 } 255 } 253 256 this->nextKeyFrame = this->keyFrameList->nextElement(this->nextKeyFrame); 254 257 printf("%p from:%f to:%f\n", this->currentKeyFrame,this->currentKeyFrame->value, this->nextKeyFrame->value); -
orxonox/trunk/src/story_entities/world.cc
r3832 r3846 373 373 this->glmis->step(); 374 374 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);397 375 break; 398 376 } -
orxonox/trunk/src/track_manager.cc
r3845 r3846 394 394 // initializing the Animation for the Text. 395 395 this->textAnimation = new tAnim<Text>(this->trackText, &Text::setBlending); 396 this->textAnimation->addKeyFrame(1.0, 1.0, ANIM_LINEAR);397 this->textAnimation->addKeyFrame(0.0, 1.0);396 this->textAnimation->addKeyFrame(1.0, 3.0, ANIM_LINEAR); 397 this->textAnimation->addKeyFrame(0.0, .001); 398 398 this->textAnimation->setInfinity(ANIM_INF_CONSTANT); 399 399 } … … 941 941 { 942 942 this->trackText->setText(this->currentTrackElem->getName()); 943 this->textAnimation-> play();943 this->textAnimation->replay(); 944 944 } 945 945 }
Note: See TracChangeset
for help on using the changeset viewer.