Skip to content

raylib.MakeMesh

JoeStrout edited this page Nov 16, 2026 · 1 revision

Make a mesh from vertex data: flat lists of numbers, lists of vectors/colors (one per vertex), or RawData. vertices is required (3 numbers per vertex); indices (3 per triangle, 0-65535), texcoords (2 per vertex), normals (3 per vertex) and colors (4 per vertex, 0-255) are optional. The mesh is uploaded to the GPU (with dynamic buffers if dynamic is true, for frequent UpdateMeshBuffer calls), ready to draw; UnloadMesh frees it

Parameters

Parameter Default Value Note
vertices
indices null
texcoords null
normals null
colors null
dynamic 0

Return value

Condition Return Value
(always) map

Notes

Clone this wiki locally