UpdateMesh()

Syntax

UpdateMesh(#Mesh, SubMesh)
Description
Start the mesh update, to modify in real time its vertices and other values. The mesh has to be created with the #PB_Mesh_Dynamic flag. Once the mesh modifications are finished, FinishMesh() needs to be called. The mesh can use the following commands to change their properties: MeshIndex(), MeshFace(), MeshVertexPosition(), MeshVertexNormal(), MeshVertexTangent(), MeshVertexColor() and MeshVertexTextureCoordinate().

Parameters

Mesh The mesh to use.
SubMesh The submesh index to modify. The first submesh index is 0 (main mesh).

Return value

None.

See Also

CreateMesh(), MeshIndex(), MeshFace(), MeshVertexPosition(), MeshVertexNormal(), MeshVertexTangent(), MeshVertexColor() MeshVertexTextureCoordinate()

Supported OS

All

<- TransformMesh() - Mesh Index - UpdateMeshBoundingBox() ->