Changeset 6731 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 25, 2006, 6:46:06 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/Makefile.am
r6655 r6731 21 21 world_entities/satellite.cc \ 22 22 world_entities/movie_entity.cc \ 23 world_entities/recorder.cc \ 23 24 world_entities/character_attributes.cc \ 24 25 world_entities/test_entity.cc \ … … 74 75 world_entities/satellite.h \ 75 76 world_entities/movie_entity.h \ 77 world_entities/recorder.h \ 76 78 world_entities/character_attributes.h \ 77 79 world_entities/test_entity.h \ -
trunk/src/world_entities/movie_entity.cc
r6695 r6731 37 37 height = 20; 38 38 width = 20; 39 mediaLoaded = false; 39 40 40 41 this->toList(OM_COMMON); … … 63 64 LoadParam(root, "name", this, MovieEntity, loadMovie); 64 65 LoadParam(root, "axis", this, MovieEntity, setAxis); 65 LoadParam(root, "rotation", this, MovieEntity, setRotation);66 //LoadParam(root, "rotation", this, MovieEntity, setRotation); 66 67 LoadParam(root, "size", this, MovieEntity, setSize); 67 68 } … … 69 70 void MovieEntity::loadMovie(const char* filename) 70 71 { 71 media_container->loadMedia(filename); 72 if(media_container->loadMedia(filename)) 73 mediaLoaded = true; 74 else 75 mediaLoaded = false; 72 76 } 73 77 … … 97 101 void MovieEntity::tick(float time) 98 102 { 103 if(!mediaLoaded) 104 return; 105 99 106 timer += time; 100 107 … … 122 129 void MovieEntity::draw() const 123 130 { 131 if(!mediaLoaded) 132 false; 124 133 125 134 glPushMatrix(); -
trunk/src/world_entities/movie_entity.h
r6600 r6731 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.