feat: add model / texture cooking
This commit is contained in:
@@ -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);
|
||||
};
|
||||
Reference in New Issue
Block a user