18 lines
409 B
C++
18 lines
409 B
C++
#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);
|
|
};
|