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 /src/util | |
| 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 'src/util')
| -rw-r--r-- | src/util/asset_manager.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util/asset_manager.cc b/src/util/asset_manager.cc index 5067ebe..274f0f9 100644 --- a/src/util/asset_manager.cc +++ b/src/util/asset_manager.cc @@ -28,6 +28,10 @@ static const ProcGenEntry kAssetManagerProcGenFuncs[] = { {"gen_perlin", procedural::gen_perlin}, {"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 const size_t kNumProcGenFuncs = sizeof(kAssetManagerProcGenFuncs) / sizeof(kAssetManagerProcGenFuncs[0]); |
