00001 00002 #ifndef __D3DTEXTUREMANAGER_H_ 00003 #define __D3DTEXTUREMANAGER_H_ 00004 00005 00006 00007 #include "..\textureManagerInterface.h" 00008 00009 #include <d3dx8.h> 00010 #include <d3d8.h> 00011 #include <map> 00012 00020 class D3DTextureManager : public textureManagerInterface { 00021 00022 protected: 00023 LPDIRECT3DDEVICE8 m_lpD3DDevice; 00024 std::map<int, LPDIRECT3DTEXTURE8> m_oTextures; 00027 public: 00032 D3DTextureManager(LPDIRECT3DDEVICE8); 00033 00037 ~D3DTextureManager(); 00038 00048 HRESULT addTexture(std::string strFilename, const int value); 00049 00057 void setTexture(const int value); 00058 00059 00060 00061 }; 00062 00063 #endif