UpdateMesh()

语法

UpdateMesh(#Mesh, SubMesh)
概要
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().

参数

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

返回值

无.

参阅

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

已支持操作系统

所有

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