Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3826 in orxonox.OLD


Ignore:
Timestamp:
Apr 14, 2005, 2:02:21 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: animation debug function

Location:
orxonox/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/animation.h

    r3825 r3826  
    5050  ANIM_FUNCTION animFunc;
    5151};
     52
     53
     54/**********************TEST*******************************/
     55class aTest
     56{
     57 public:
     58  aTest() {}
     59  ~aTest() {}
     60  void littleDebug(float f) {  printf("setting f to:%f\n", f);}
     61};
     62
     63//aTest::aTest() {}
     64//aTest::~aTest() {}
     65
     66//void aTest::littleDebug(float f)
     67
     68/**********************TEST*******************************/
     69
    5270
    5371class Anim
     
    120138  AnimKeyFrame* nextKeyFrame;
    121139  tList<AnimKeyFrame>* keyFrameList;
    122 
    123140
    124141
     
    339356
    340357
     358
     359
    341360#endif /* _ANIMATION_H */
  • orxonox/trunk/src/story_entities/world.cc

    r3816 r3826  
    378378            testText->setBindNode(tn);
    379379
    380             tAnim<Text>* testAnim = new tAnim<Text>(testText, &Text::setBlending);
     380            aTest* test = new aTest();
     381            tAnim<aTest>* testAnim = new tAnim<aTest>(test, &aTest::littleDebug);
    381382            testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
    382383            testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
    383             testAnim->addKeyFrame(0.0, 1.0, ANIM_LINEAR);
    384             testAnim->addKeyFrame(1.0, 1.0, ANIM_LINEAR);
     384            testAnim->addKeyFrame(0.0, 1.0, ANIM_SINE);
     385            testAnim->addKeyFrame(1.0, 1.0, ANIM_SINE);
    385386            testAnim->setInfinity(ANIM_INF_REWIND);
    386387            break;
Note: See TracChangeset for help on using the changeset viewer.