renderer/loader: code refactoring

Move the raw image loading interface to the RawImageLoader.
it is only valid for this component.
This commit is contained in:
Hermet Park 2023-11-08 11:14:15 +09:00
parent a37649cd1f
commit 042693ccfe
2 changed files with 1 additions and 2 deletions

View file

@ -32,7 +32,7 @@ public:
~RawLoader();
using LoadModule::open;
bool open(const uint32_t* data, uint32_t w, uint32_t h, bool copy) override;
bool open(const uint32_t* data, uint32_t w, uint32_t h, bool copy);
bool read() override;
bool close() override;

View file

@ -38,7 +38,6 @@ public:
virtual bool open(const string& path) { return false; }
virtual bool open(const char* data, uint32_t size, bool copy) { return false; }
virtual bool open(const uint32_t* data, uint32_t w, uint32_t h, bool copy) { return false; }
//Override this if the vector-format has own resizing policy.
virtual bool resize(Paint* paint, float w, float h) { return false; }