feat: add model / texture cooking

This commit is contained in:
2026-10-13 00:28:34 +02:00
parent 38230f5092
commit 0273340e3b
6 changed files with 249 additions and 21 deletions
+17
View File
@@ -0,0 +1,17 @@
#pragma once
#include <filesystem>
namespace fs = std::filesystem;
class TextureCooker
{
public:
// Returns true if rebuilt. Throws when the image can't be decoded.
bool CookFileIfNeeded(const fs::path& source, const fs::path& output) const;
static fs::path MakeOutputPath(const fs::path& dstLikeSrc);
private:
static bool NeedsRebuild(const fs::path& source, const fs::path& output);
};