Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 12, 2005, 1:05:46 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: some simple animation-template-class implemented, to animate floats
This class will in the Future be able to animate everything one needs to animate

Location:
orxonox/branches/textEngine/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/story_entities/world.cc

    r3777 r3781  
    4040#include "glmenu_imagescreen.h"
    4141#include "list.h"
     42
     43#include "animation.h"
    4244
    4345using namespace std;
     
    354356            this->testText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
    355357            testText->setText("TEXT  rocks");
    356             testText->setBlending(.5);
     358            testText->setBlending(1.0);
    357359            testText->setBindNode(tn);
    358360
     361           
     362            tmpAnim = new Animation<Text>();
     363
     364            tmpAnim->setFuncToAnim(testText, &Text::setBlending);
    359365            break;
    360366          }
     
    780786      this->localCamera->tick(this->dt);
    781787      this->garbageCollector->tick(seconds);
     788      tmpAnim->tick(this->dt);
    782789    }
    783790  this->lastFrame = currentFrame;
  • orxonox/branches/textEngine/src/story_entities/world.h

    r3769 r3781  
    2424class GarbageCollector;
    2525class Text;
     26template<class T> class Animation;
    2627
    2728//! The game world Interface
     
    9596  bool bPause;                  //!< pause mode
    9697
     98  Animation<Text>* tmpAnim;
    9799  Text* testText;               //!< A text to Test the TextEngine;
    98100  GLMenuImageScreen* glmis;     //!< The Level-Loader Display
Note: See TracChangeset for help on using the changeset viewer.