30#include "graphics/VertexLayout.h"
31#include "render/Mesh.h"
Engine-wide primitive type aliases and GLM math imports.
Factory that generates MeshData for common geometric primitives.
static MeshData CreateCube(f32 width, f32 height)
Create a box (6 faces) with the given dimensions.
static MeshData CreateFullscreenQuad()
Create a clip-space quad covering the entire screen.
static MeshData CreateRectangle(f32 width, f32 height)
Create a flat quad with the given dimensions.
static MeshData CreateTriangle(f32 size)
Create an equilateral triangle centred at the origin.
float f32
32-bit IEEE float — the standard GL scalar type.
CPU-side mesh bundle produced by Builder factory methods.
std::vector< f32 > vertices
Interleaved vertex data (pos, normal, UV …).
std::vector< u32 > indices
Triangle list indices (empty → non-indexed draw).
std::shared_ptr< Mesh > buildMesh()
Upload this geometry to the GPU and return a renderable Mesh.
VertexLayout layout
Attribute layout that matches the vertex data format.
Complete description of how vertex data is packed in a VBO.