Microsoft DirectX 8.1 (Visual Basic) |
Controls the reordering of mesh faces and vertices to optimize performance, generating an output mesh.
object.Optimize( _ Flags As Long, _ AdjacencyOut As Any, _ FaceRemap As Any, _ VertexRemapOut As D3DXBuffer) As D3DXMesh
Note that the D3DXMESHOPT_STRIPREORDER and D3DXMESHOPT_VERTEXCACHE optimization flags are mutually exclusive.
D3DXMesh object, representing the optimized mesh.
If the method fails, an error is raised and Err.Number can be set to one of the following values.
D3DERR_INVALIDCALL |
E_OUTOFMEMORY |
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
ClonePMeshFVF can be used to convert a progressive mesh from one FVF to another.