Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7208 in orxonox.OLD for branches/std/src/world_entities/skybox.h


Ignore:
Timestamp:
Mar 10, 2006, 1:56:40 AM (18 years ago)
Author:
bensch
Message:

orxonox/std: less evil

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/world_entities/skybox.h

    r6771 r7208  
    2828{
    2929 public:
    30   SkyBox(const char* fileName = NULL);
     30  SkyBox(const std::string& fileName = "");
    3131  SkyBox(const TiXmlElement* root);
    3232
     
    4444  void setSize(float size);
    4545  /** assumes jpg as input-format */
    46   void setTexture(const char* name) { if (textureName) delete[] textureName; textureName = new char[strlen(name)+1]; strcpy(textureName, name); this->setTextureAndType (name, "jpg"); };
     46  void setTexture(const std::string& name);
    4747
    48   void setTextureAndType(const char* name, const char* extension);
    49   void setTextures(const char* top, const char* bottom, const char* left,
    50                    const char* right, const char* front, const char* back);
     48  void setTextureAndType(const std::string& name, const std::string& extension);
     49  void setTextures(const std::string& top, const std::string& bottom, const std::string& left,
     50                   const std::string& right, const std::string& front, const std::string& back);
    5151
    52   void loadCubeMapTextures(const char* top, const char* bottom, const char* left,
    53                            const char* right, const char* front, const char* back);
     52  void loadCubeMapTextures(const std::string& top, const std::string& bottom, const std::string& left,
     53                           const std::string& right, const std::string& front, const std::string& back);
    5454
    5555  GLuint getTexture(SKY_SIDE side) const { return (this->material[side]) ? this->material[side]->getDiffuseTexture(): 0; };
     
    7171  float           size;            //!< Size of the SkyBox. This should match the frustum maximum range.
    7272  float           textureSize;     //!< this is the length of a texture (assumes a square texture)
    73   char*           textureName;     //!< Name of the Texture
     73  std::string     textureName;     //!< Name of the Texture
    7474
    7575};
Note: See TracChangeset for help on using the changeset viewer.