Commit 5a4ac03e authored by 水濑真白's avatar 水濑真白

Merge PR #2965 (refactor ImageManager)

parents 16a2406a afd7fbf4
This diff is collapsed.
......@@ -10,6 +10,8 @@
namespace ygo {
class ImageManager {
private:
irr::video::ITexture* addTexture(const char* name, irr::video::IImage* srcimg, irr::s32 width, irr::s32 height);
public:
std::vector<std::wstring> ImageList[7];
int saved_image_id[7];
......@@ -23,6 +25,8 @@ public:
void ClearTexture();
void ResizeTexture();
irr::video::ITexture* GetTextureFromFile(const char* file, irr::s32 width, irr::s32 height);
irr::video::IImage* GetImage(int code);
irr::video::ITexture* GetTexture(int code, irr::s32 width, irr::s32 height);
irr::video::ITexture* GetTexture(int code, bool fit = false);
irr::video::ITexture* GetBigPicture(int code, float zoom);
irr::video::ITexture* GetTextureThumb(int code);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment