Changeset 7218 in orxonox.OLD for branches/std/src/lib/graphics/importer
- Timestamp:
- Mar 12, 2006, 3:00:04 PM (19 years ago)
- Location:
- branches/std/src/lib/graphics/importer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/graphics/importer/static_model.cc
r7210 r7218 499 499 * String is different from the argument addFace, 500 500 * in this, that the first Vertex/Normal/Texcoord is 1 instead of 0 501 * 502 * @TODO make it std::string conform 501 503 */ 502 504 bool StaticModel::addFace (const std::string& faceStringInput) -
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; -
branches/std/src/lib/graphics/importer/texture_sequence.h
r7195 r7218 23 23 bool loadImageSeries(unsigned int count, ...); 24 24 bool loadImageSeries(unsigned int count, va_list textureNames); 25 bool addFrame(const char*image);25 bool addFrame(const std::string& image); 26 26 bool addFrame(SDL_Surface* surface); 27 27 bool addFrame(GLuint texture);
Note: See TracChangeset
for help on using the changeset viewer.