home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / TextureHandler.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  549 b   |  26 lines

  1. #ifndef __TextureHandler_h__
  2. #define __TextureHandler_h__
  3.  
  4. #include "Texture.h"
  5.  
  6. #include <vector>
  7.  
  8. //using namespace std;
  9.  
  10. typedef std::pair<Texture*, int> textureRefCounterPair_t;
  11.  
  12. class TextureHandler{
  13. public:
  14.     static Texture* getTexture(const char* filename);
  15.     static void releaseTexture(Texture* tex);
  16.     static int getNumTextures();
  17.  
  18.     static void reloadTextures();
  19. private:
  20.     static std::vector<textureRefCounterPair_t> textures;
  21.  
  22.     static Texture* loadTexture(const char* filename);
  23. };
  24.  
  25. #endif    /* __TextureHandler_h__ */
  26.