-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.UpdateMeshBuffer
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Update mesh vertex data in GPU for a specific buffer index
| Parameter | Default Value | Note |
|---|---|---|
| mesh | ||
| index | ||
| data | ||
| offset | 0 |
None.
mesh = raylib.GenMeshPlane(4, 4, 2, 2)
raylib.UploadMesh mesh, true
// Update vertex positions (buffer index 0) with new data
newPositions = [0,0,0, 1,0,0, 1,0,1, 0,0,1]
raylib.UpdateMeshBuffer mesh, 0, newPositions, 0
raylib.UnloadMesh mesh