Changeset 7208 in orxonox.OLD for branches/std/src/lib/graphics
- Timestamp:
- Mar 10, 2006, 1:56:40 AM (19 years ago)
- Location:
- branches/std/src/lib/graphics/importer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/graphics/importer/md2Model.cc
r7207 r7208 513 513 } 514 514 515 this->skinFileName = fileName;515 this->skinFileName = fileName; 516 516 517 517 this->material.setName("md2ModelMaterial"); -
branches/std/src/lib/graphics/importer/media_container.cc
r7203 r7208 34 34 * Default constructor 35 35 */ 36 MediaContainer::MediaContainer(const char*filename)36 MediaContainer::MediaContainer(const std::string& filename) 37 37 { 38 38 // set the class id for the base object … … 41 41 fps = 0; 42 42 mediaLoaded = false; 43 44 this->loadMedia(filename);43 if (!filename.empty()) 44 this->loadMedia(filename); 45 45 } 46 46 … … 84 84 } 85 85 86 bool MediaContainer::loadMedia(const char*filename)86 bool MediaContainer::loadMedia(const std::string& filename) 87 87 { 88 88 this->unloadMedia(); 89 89 90 if(filename == NULL)90 if(filename.empty()) 91 91 return false; 92 92 // check whether file exists 93 93 if(!ResourceManager::isInDataDir(filename)) 94 94 { 95 PRINTF(1)("Could not find %s\n", filename );95 PRINTF(1)("Could not find %s\n", filename.c_str()); 96 96 return false; 97 97 } -
branches/std/src/lib/graphics/importer/media_container.h
r6981 r7208 44 44 public: 45 45 46 MediaContainer(const char*filename = NULL);46 MediaContainer(const std::string& filename = NULL); 47 47 virtual ~MediaContainer(); 48 48 49 bool loadMedia(const char*filename);49 bool loadMedia(const std::string& filename); 50 50 void loadFrames(); 51 51 -
branches/std/src/lib/graphics/importer/movie_player.cc
r7203 r7208 42 42 mediaLoaded = false; 43 43 44 this->loadMovie(filename);45 44 if (!filename.empty()) 45 this->loadMovie(filename); 46 46 } 47 47
Note: See TracChangeset
for help on using the changeset viewer.