From 2fd58be11246772dd50ede6188a4ab960e6ffc0e Mon Sep 17 00:00:00 2001 From: skal Date: Fri, 13 Feb 2026 13:28:02 +0100 Subject: 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 --- src/util/asset_manager.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/util/asset_manager.cc') 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]); -- cgit v1.2.3