Files
ReSkate/Engine/Vfs/item_thumbnails.h
2026-10-02 14:40:41 -05:00

21 lines
718 B
C++

#pragma once
#include "Engine/Resource/texture.h"
#include <cstdint>
#include <filesystem>
#include <string>
#include <vector>
namespace dingosdk::vfs {
struct ItemThumbnail {
std::string item; // owned asset id, e.g. own_bkbanks_generic_twinkiehalf_00001
frostbite::Image image; // side x side RGBA
};
struct ThumbnailRead {
std::vector<ItemThumbnail> thumbnails;
std::size_t failed{}; // textures that were found but could not be decoded
};
// The build-kit object thumbnails the game ships ("thumbnail/tool/own_bk*"),
// read from the installed game's data and scaled to `side` x `side`.
ThumbnailRead read_build_kit_thumbnails(const std::filesystem::path& gameRoot, std::uint32_t side);
}