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 depthSegments = 1
75MeshAsset generateSphere(uint32_t resolution = 16);
83MeshAsset generatePyramid(
float baseSize = 1.0f,
float height = 1.0f);
96MeshAsset generateCone(
float radius = 0.5f,
float height = 1.0f, uint32_t segments = 16);
110MeshAsset generateCylinder(
float radius = 0.5f,
float height = 1.0f, uint32_t segments = 20);
124MeshAsset generateRing(
float innerRadius = 0.25f,
float outerRadius = 0.5f, uint32_t segments = 32);
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