3#include <nlohmann/json_fwd.hpp>
5#include "resource/asset/mesh_asset.h"
6#include "resource/resource_handle.h"
37MeshHandle createGeneratedMesh(
const nlohmann::json& source,
ResourceManager& resources);
44MeshAsset generateTriangle(
float size = 1.0f);
57 uint32_t widthSegments = 1,
58 uint32_t heightSegments = 1
77MeshAsset generateSphere(uint32_t xSegments = 32, uint32_t ySegments = 16);
85MeshAsset generatePyramid(
float baseSize = 1.0f,
float height = 1.0f);
98MeshAsset generateCone(
float radius = 0.5f,
float height = 1.0f, uint32_t segments = 16);
112MeshAsset generateCylinder(
float radius = 0.5f,
float height = 1.0f, uint32_t segments = 20);
Open type-erased resource registry with typed handles and generational lifetimes.
Definition resource_manager.h:46
CPU-side geometry: indexed triangle mesh plus a cached local-space AABB.
Definition mesh_asset.h:51