Changeset 7218 in orxonox.OLD for branches/std/src/lib/graphics/importer/texture_sequence.cc
- Timestamp:
- Mar 12, 2006, 3:00:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/graphics/importer/texture_sequence.cc
r6624 r7218 124 124 * @returns true on success 125 125 */ 126 bool TextureSequence::addFrame(const char*imageName)126 bool TextureSequence::addFrame(const std::string& imageName) 127 127 { 128 if (imageName == NULL) 129 return false; 130 131 SDL_Surface* addSurface = IMG_Load(imageName); 128 SDL_Surface* addSurface = IMG_Load(imageName.c_str()); 132 129 bool success = this->addFrame(addSurface); 133 130 delete addSurface;
Note: See TracChangeset
for help on using the changeset viewer.