00001 #ifndef _TextureManager_H_
00002 #define _TextureManager_H_
00003
00004 #include "Texture.h"
00005
00006 namespace zak {
00007
00008 class ZAKENGINE_API TextureManager {
00009 private:
00010
00011 vector<Texture*> Map;
00012
00013 public:
00014 Texture *Load(const char *szFilename, unsigned int uiColorKey, bool persist, DWORD filter=2, DWORD mipFilter=2);
00015 void Remove(const char *szFilename);
00016 void Remove(Texture *pTexture);
00017 void ReleaseAll();
00018 void Clear();
00019 int GetCount();
00020 bool Reload();
00021
00022 TextureManager();
00023 ~TextureManager();
00024 };
00025
00026 extern ZAKENGINE_API TextureManager g_textureManager;
00027
00028 }
00029
00030 #endif // _TextureManager_H_