DeferredRenderer 1.0
|
00001 #ifndef TEXTURE_MANAGER_H 00002 #define TEXTURE_MANAGER_H 00003 00004 #include "ngl/Types.h" 00005 #include "string" 00006 #include "map" 00007 #include "Texture.h" 00008 00016 class TextureManager 00017 { 00018 public: 00020 TextureManager(); 00021 00023 ~TextureManager(); 00024 00026 void addTexture(Texture &_t); 00027 00029 Texture getTexture(const std::string &_name); 00030 00032 GLuint getTextureId(const std::string &_name); 00033 00035 void bindTexture(const std::string &_name); 00036 00038 void addEmptyf(const std::string &_name, int _w, int _h); 00039 00041 void addEmpty(const std::string &_name, int _w, int _h); 00042 00043 private: 00044 00046 std::map<std::string, Texture> m_textures; 00047 00048 }; 00049 00050 #endif // FRUSTUM_H