TexturLoader.h 573 B

123456789101112131415161718192021222324252627
  1. #ifndef TEXTURLOADER_H_INCLUDED
  2. #define TEXTURLOADER_H_INCLUDED
  3. #include "Texture.h"
  4. #include <map>
  5. class TexturLoader
  6. {
  7. public:
  8. TexturLoader();
  9. TexturLoader(std::string folder);
  10. ~TexturLoader();
  11. GLuint take(std::string nom);
  12. void addTextur(std::string nom, Texture* sampler); // [!!!] La texture sera détruite dans le destructeur
  13. void assignFolder(std::string folder);
  14. private:
  15. std::string m_folder;
  16. std::map<std::string, Texture*>::iterator m_it;
  17. std::map<std::string, Texture*> m_paquet;
  18. };
  19. #endif // TEXTURLOADER_H_INCLUDED