implement png image loader and refactor existing loader classes

This commit is contained in:
ohyzha
2024-07-31 12:53:27 +03:00
parent 51608425c1
commit 847b8660b5
5 changed files with 108 additions and 15 deletions

View File

@@ -18,6 +18,7 @@ namespace OpenVulkano::Image
public:
virtual ~IImageLoader() = default;
static std::unique_ptr<Image> loadData(const uint8_t* data, int size, int desiredChannels = 0);
virtual std::unique_ptr<Image> loadFromFile(const std::string& filePath) = 0;
virtual std::unique_ptr<Image> loadFromMemory(const std::vector<uint8_t>& buffer) = 0;
};