Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3794 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Apr 13, 2005, 3:44:38 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: definition of animation

Location:
orxonox/trunk/src/story_entities
Files:
2 edited

Legend:

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

    r3790 r3794  
    3838#include "garbage_collector.h"
    3939#include "simple_animation.h"
     40#include "animation.h"
    4041
    4142#include "command_node.h"
     
    368369            testText->setBindNode(tn);
    369370
    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             */
     371            testAnim = new tAnim<Text>(testText, &Text::setBlending);
     372            testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
     373            testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
     374            testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
     375            testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
     376            testAnim->setInfinity(ANIM_INF_REWIND);
     377
    378378            break;
    379379          }
     
    939939      this->garbageCollector->tick(seconds);
    940940      this->simpleAnimation->tick(seconds);
     941     
     942      //      testAnim->tick(seconds);
    941943
    942944    }
  • orxonox/trunk/src/story_entities/world.h

    r3790 r3794  
    2424class GarbageCollector;
    2525class SimpleAnimation;
    26 
     26class Anim;
    2727class Text;
    2828
     
    9999  GLMenuImageScreen* glmis;           //!< The Level-Loader Display
    100100
     101  Anim* testAnim;
    101102  Text* testText;                     //!< A text to Test the TextEngine;
    102103
Note: See TracChangeset for help on using the changeset viewer.