diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-13 13:28:02 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-13 13:28:02 +0100 |
| commit | 2fd58be11246772dd50ede6188a4ab960e6ffc0e (patch) | |
| tree | 18aaf8c682b902754bc0cf053526d7cca7fcc726 /tools | |
| parent | 8a41ac7cb95c65d68892810d89c9c80a0463f06d (diff) | |
Add test asset support with STRIP_ALL guards
Fixes test_assets.cc compilation by adding missing test asset IDs and
procedural generators. Test-specific code is protected with DEMO_STRIP_ALL
to exclude from release builds.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/asset_packer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/asset_packer.cc b/tools/asset_packer.cc index e7f678b..af89a88 100644 --- a/tools/asset_packer.cc +++ b/tools/asset_packer.cc @@ -31,6 +31,10 @@ static const std::map<std::string, ProcGenFunc> kAssetPackerProcGenFuncMap = { {"gen_noise", procedural::gen_noise}, {"gen_grid", procedural::gen_grid}, {"make_periodic", procedural::make_periodic}, +#if !defined(DEMO_STRIP_ALL) + {"gen_noise_256", procedural::gen_noise_256}, + {"gen_fail", procedural::gen_fail}, +#endif }; static bool HasImageExtension(const std::string& filename) { |
