Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6731 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Jan 25, 2006, 6:46:06 PM (19 years ago)
Author:
bensch
Message:

merged avi_play back to the trunk. command https://svn.orxonox.net/orxonox/branches/avi_play . -r6602:HEAD

Location:
trunk/src/world_entities
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/Makefile.am

    r6655 r6731  
    2121                  world_entities/satellite.cc \
    2222                  world_entities/movie_entity.cc \
     23                  world_entities/recorder.cc \
    2324                  world_entities/character_attributes.cc \
    2425                  world_entities/test_entity.cc \
     
    7475                 world_entities/satellite.h \
    7576                 world_entities/movie_entity.h \
     77                 world_entities/recorder.h \
    7678                 world_entities/character_attributes.h \
    7779                 world_entities/test_entity.h \
  • trunk/src/world_entities/movie_entity.cc

    r6695 r6731  
    3737  height = 20;
    3838  width = 20;
     39  mediaLoaded = false;
    3940
    4041  this->toList(OM_COMMON);
     
    6364  LoadParam(root, "name", this, MovieEntity, loadMovie);
    6465  LoadParam(root, "axis", this, MovieEntity, setAxis);
    65   LoadParam(root, "rotation", this, MovieEntity, setRotation);
     66  //LoadParam(root, "rotation", this, MovieEntity, setRotation);
    6667  LoadParam(root, "size", this, MovieEntity, setSize);
    6768}
     
    6970void MovieEntity::loadMovie(const char* filename)
    7071{
    71   media_container->loadMedia(filename);
     72  if(media_container->loadMedia(filename))
     73    mediaLoaded = true;
     74  else
     75    mediaLoaded = false;
    7276}
    7377
     
    97101void MovieEntity::tick(float time)
    98102{
     103  if(!mediaLoaded)
     104    return;
     105
    99106  timer += time;
    100107
     
    122129void MovieEntity::draw() const
    123130{
     131  if(!mediaLoaded)
     132    false;
    124133
    125134  glPushMatrix();
  • trunk/src/world_entities/movie_entity.h

    r6600 r6731  
    2626    float width;
    2727
     28    bool mediaLoaded;
     29
    2830  public:
    2931    MovieEntity (const TiXmlElement* root = NULL);
Note: See TracChangeset for help on using the changeset viewer.