Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/graphics/effects/lense_flare.cc

    r7216 r7218  
    131131 * @param mode the mode character
    132132 */
    133 GLint LenseFlare::charToFogMode(const char* mode)
     133GLint LenseFlare::stringToFogMode(const std::string& mode)
    134134{}
    135135
  • branches/std/src/lib/graphics/effects/lense_flare.h

    r7216 r7218  
    4343
    4444  private:
    45     GLint charToFogMode(const char* mode);
     45    GLint stringToFogMode(const std::string& mode);
    4646    void setSourceVisibility(bool visibility) ;
    4747
  • 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.