Changeset 3193 in orxonox.OLD for orxonox/trunk/src/material.cc
- Timestamp:
- Dec 16, 2004, 4:00:43 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/material.cc
r3185 r3193 15 15 TGA-code: borrowed from nehe-Tutorials 16 16 17 ToDo:18 - free SDL-surface when deleting Material.19 - delete imgNameWithPath after use creation.20 17 */ 21 18 … … 31 28 using namespace std; 32 29 33 30 /** 31 \brief creates a ned PathList. 32 33 It is a good idea to use this as an initial List, 34 because if you give on a name the Path will not be checked for its existence. 35 */ 34 36 PathList::PathList() 35 37 { … … 37 39 next = NULL; 38 40 } 41 42 /** 43 \brief Creates a new PathList with a Name. 44 \param pName the Name of The Path. 45 46 This function just adds the Path without checking if it exists. 47 */ 39 48 PathList::PathList(char* pName) 40 49 { … … 44 53 } 45 54 55 /** 56 \brief destroys a PathList 57 58 It does this by deleting the Name and then delete its preceding PathList. 59 */ 46 60 PathList::~PathList() 47 61 { … … 52 66 } 53 67 68 /** 69 \brief Adds a new Pathlist Element. 70 \param pName 71 72 Adding a Path automatically checks if the Path exists, 73 and if it does not it will not add it to the List. 74 */ 54 75 void PathList::addPath (char* pName) 55 76 { … … 476 497 } 477 498 499 /** 500 \brief Loads a Texture to the openGL-environment. 501 \param pImage The Image to load to openGL 502 \param texture The Texture to apply it to. 503 */ 478 504 bool Material::loadTexToGL (Image* pImage, GLuint* texture) 479 505 {
Note: See TracChangeset
for help on using the changeset viewer.