add stb image loader (avatar png support)

This commit is contained in:
2023-08-01 20:17:38 +02:00
parent d725ed8cd0
commit a144459e8d
5 changed files with 81 additions and 2 deletions

9
src/image_loader_stb.hpp Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#include "./image_loader.hpp"
struct ImageLoaderSTB : public ImageLoaderI {
ImageInfo loadInfoFromMemory(const uint8_t* data, uint64_t data_size) override;
ImageResult loadFromMemoryRGBA(const uint8_t* data, uint64_t data_size) override;
};