www.pudn.com > 3D_Tank.rar > Sprite.h
#ifndef __SPRITE_H__ #define __SPRITE_H__ #include #include #include #include #include "ComPtr.h" #include "Error.h" typedef CComPtr ptrTexture; typedef std::map mapTexture; class ImageDrawer { public: ImageDrawer(); ~ImageDrawer(); VOID Init(const CComPtr &device); BOOL AddImage(LPTSTR lptstrFile, D3DCOLOR key); BOOL RemoveImage(LPTSTR lptstrFile); //δʵÏÖ VOID Draw(LPTSTR lptstrFile, const D3DXVECTOR3 &position, DWORD flag); private: CComPtr m_pDevice; CComPtr m_pSprite; mapTexture m_mapTexture; }; #endif //class Sprite