Add support for resizing textures with stb in TextureTool

This commit is contained in:
Wojtek Figat
2021-02-28 19:14:30 +01:00
parent 90e385c3c3
commit a7bb25b7d5
5 changed files with 2747 additions and 8 deletions

View File

@@ -291,6 +291,7 @@ private:
#if COMPILE_WITH_STB
static bool ExportTextureStb(ImageType type, const StringView& path, const TextureData& textureData);
static bool ImportTextureStb(ImageType type, const StringView& path, TextureData& textureData, bool& hasAlpha);
static bool ResizeStb(TextureData& dst, const TextureData& src, int32 dstWidth, int32 dstHeight);
#endif
};