Changeset 6328 in orxonox.OLD for branches/network/src/world_entities/skybox.h
- Timestamp:
- Dec 28, 2005, 2:41:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/skybox.h
r6273 r6328 35 35 void setSize(float size); 36 36 /** assumes jpg as input-format */ 37 void setTexture(const char* name) { strncpy(textureName, name, 1024); this->setTextureAndType (name, "jpg"); };37 void setTexture(const char* name) { if (textureName) delete[] textureName; textureName = new char[strlen(name)+1]; strcpy(textureName, name); this->setTextureAndType (name, "jpg"); }; 38 38 39 39 void setTextureAndType(const char* name, const char* extension); … … 51 51 Material** material; //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back 52 52 float size; //!< Size of the SkyBox. This should match the frustum maximum range. 53 char textureName[1024];//!< Name of the Texture53 char* textureName; //!< Name of the Texture 54 54 55 55 };
Note: See TracChangeset
for help on using the changeset viewer.