home *** CD-ROM | disk | FTP | other *** search
- #ifndef __TextureHandler_h__
- #define __TextureHandler_h__
-
- #include "Texture.h"
-
- #include <vector>
-
- //using namespace std;
-
- typedef std::pair<Texture*, int> textureRefCounterPair_t;
-
- class TextureHandler{
- public:
- static Texture* getTexture(const char* filename);
- static void releaseTexture(Texture* tex);
- static int getNumTextures();
-
- static void reloadTextures();
- private:
- static std::vector<textureRefCounterPair_t> textures;
-
- static Texture* loadTexture(const char* filename);
- };
-
- #endif /* __TextureHandler_h__ */
-