Changeset 6704 in orxonox.OLD for branches/avi_play/src/world_entities
- Timestamp:
- Jan 25, 2006, 3:18:45 PM (19 years ago)
- Location:
- branches/avi_play/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/world_entities/movie_entity.cc
r6600 r6704 40 40 height = 20; 41 41 width = 20; 42 mediaLoaded = false; 42 43 43 44 this->toList(OM_COMMON); … … 64 65 LoadParam(root, "name", this, MovieEntity, loadMovie); 65 66 LoadParam(root, "axis", this, MovieEntity, setAxis); 66 LoadParam(root, "rotation", this, MovieEntity, setRotation);67 //LoadParam(root, "rotation", this, MovieEntity, setRotation); 67 68 LoadParam(root, "size", this, MovieEntity, setSize); 68 69 } … … 70 71 void MovieEntity::loadMovie(const char* filename) 71 72 { 72 media_container->loadMedia(filename); 73 if(media_container->loadMedia(filename)) 74 mediaLoaded = true; 75 else 76 mediaLoaded = false; 73 77 } 74 78 … … 98 102 void MovieEntity::tick(float time) 99 103 { 104 if(!mediaLoaded) 105 return; 106 100 107 timer += time; 101 108 … … 123 130 void MovieEntity::draw() const 124 131 { 132 if(!mediaLoaded) 133 false; 125 134 126 135 glPushMatrix(); -
branches/avi_play/src/world_entities/movie_entity.h
r6600 r6704 26 26 float width; 27 27 28 bool mediaLoaded; 29 28 30 public: 29 31 MovieEntity (const TiXmlElement* root = NULL);
Note: See TracChangeset
for help on using the changeset viewer.