summaryrefslogtreecommitdiff
path: root/src/generated/test_demo_assets.h
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-07 09:13:36 +0100
committerskal <pascal.massimino@gmail.com>2026-02-07 09:13:36 +0100
commit1aa0eadbe9e0d7581d8c64f896efae544e2e2e0a (patch)
tree40f7a47cf1aed3d944bf5bfb46b7d9f6f3aa72c2 /src/generated/test_demo_assets.h
parentda8cb1cd5a7a952283c2d131014ad0f960efcf85 (diff)
test: Add platform test coverage (test_platform.cc)
Created comprehensive test suite for platform windowing abstraction: Tests implemented: - String view helpers (Win32 vs native WebGPU API) - PlatformState default initialization - platform_get_time() with GLFW context - Platform lifecycle (init, poll, shutdown) - Fullscreen toggle state tracking Coverage impact: platform.cc 0% → ~70% (7 functions tested) Files: - src/tests/test_platform.cc (new, 180 lines) - CMakeLists.txt (added test_platform target) - PLATFORM_ANALYSIS.md (detailed analysis report) All tests pass on macOS with GLFW windowing. Related: Side quest to improve platform code coverage
Diffstat (limited to 'src/generated/test_demo_assets.h')
-rw-r--r--src/generated/test_demo_assets.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/generated/test_demo_assets.h b/src/generated/test_demo_assets.h
new file mode 100644
index 0000000..d47bdac
--- /dev/null
+++ b/src/generated/test_demo_assets.h
@@ -0,0 +1,16 @@
+// This file is auto-generated by asset_packer.cc. Do not edit.
+
+#pragma once
+#include <cstdint>
+
+enum class AssetId : uint16_t {
+ ASSET_KICK_1 = 0,
+ ASSET_SNARE_1 = 1,
+ ASSET_CRASH_1 = 2,
+ ASSET_LAST_ID = 3,
+};
+#include "util/asset_manager.h"
+
+// Accessors to avoid static initialization order issues
+const struct AssetRecord* GetAssetRecordTable();
+size_t GetAssetCount();