// This file is part of the 64k demo project. // Typed asset helpers for specialized asset retrieval. // Only include this if you need TextureAsset or MeshAsset structs. #pragma once #include "asset_manager.h" struct TextureAsset { int width; int height; const uint8_t* pixels; }; struct MeshVertex { float p[3]; float n[3]; float u[2]; }; struct MeshAsset { uint32_t num_vertices; const MeshVertex* vertices; uint32_t num_indices; const uint32_t* indices; }; // Helper to retrieve and parse a simple texture asset (from packer's // [w][h][pixels] format) TextureAsset GetTextureAsset(AssetId asset_id); // Helper to retrieve and parse a mesh asset (from packer's binary format) MeshAsset GetMeshAsset(AssetId asset_id);