Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7218 in orxonox.OLD for branches/std/src/lib/graphics/importer


Ignore:
Timestamp:
Mar 12, 2006, 3:00:04 PM (19 years ago)
Author:
bensch
Message:

orxonox/std:: more strings

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  
    499499 * String is different from the argument addFace,
    500500 * in this, that the first Vertex/Normal/Texcoord is 1 instead of 0
     501 *
     502 * @TODO make it std::string conform
    501503 */
    502504bool StaticModel::addFace (const std::string& faceStringInput)
  • branches/std/src/lib/graphics/importer/texture_sequence.cc

    r6624 r7218  
    124124 * @returns true on success
    125125 */
    126 bool TextureSequence::addFrame(const char* imageName)
     126bool TextureSequence::addFrame(const std::string& imageName)
    127127{
    128   if (imageName == NULL)
    129     return false;
    130 
    131   SDL_Surface* addSurface = IMG_Load(imageName);
     128  SDL_Surface* addSurface = IMG_Load(imageName.c_str());
    132129  bool success = this->addFrame(addSurface);
    133130  delete addSurface;
  • branches/std/src/lib/graphics/importer/texture_sequence.h

    r7195 r7218  
    2323    bool loadImageSeries(unsigned int count, ...);
    2424    bool loadImageSeries(unsigned int count, va_list textureNames);
    25     bool addFrame(const char* image);
     25    bool addFrame(const std::string& image);
    2626    bool addFrame(SDL_Surface* surface);
    2727    bool addFrame(GLuint texture);
Note: See TracChangeset for help on using the changeset viewer.