Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/lib/graphics/importer/texture.h
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/lib/graphics/importer/texture.h
r3605 r3746 28 28 #endif /* HAVE_SDL_SDL_IMAGE_H */ 29 29 30 31 32 //! Class to handle lists of paths.33 /**34 \todo Ability to return Paths by itself.35 36 It is simple to use, and good, for all PathList you want.37 just create a new Pathlist, and add Paths.38 */39 class PathList40 {41 private:42 PathList();43 static PathList* firstPath; //!< A static Pointer to the first PathList in the List.44 public:45 PathList(char* pName);46 ~PathList();47 static PathList* getInstance(void);48 49 void addPath (char* pName);50 char* pathName; //!< The Name of the current Path.51 PathList* next; //!< Pointer to the next Pathlist.52 };53 54 30 //! A Class, that reads in Textures from different fileformats. 55 31 class Texture … … 70 46 GLuint texture; //!< The Texture-ID of opengl from this Texture. 71 47 SDL_Surface* map; //!< The map SDL initializes for this element. 72 char* searchTextureInPaths(c har* texName) const;48 char* searchTextureInPaths(const char* texName) const; 73 49 inline void swap(unsigned char &a, unsigned char &b); 74 50 public: 75 51 Texture(void); 52 Texture(const char* imageName); 76 53 ~Texture(void); 77 54 /** \returns The textureID of this texture. */ … … 79 56 bool loadTexToGL (Image* pImage); 80 57 81 bool loadImage(c har* imageName);58 bool loadImage(const char* imageName); 82 59 #ifndef HAVE_SDL_SDL_IMAGE_H 83 60
Note: See TracChangeset
for help on using the changeset viewer.