D3DX8.LoadPMeshFromFile
Loads a progressive mesh from a file.
object.LoadPMeshFromFile( _
Filename As String, _
D3DDevice As Direct3DDevice8, _
RetMaterials As D3DXBuffer, _
RetNumMaterials As Long) As D3DXPMesh
Parts
- object
- Object expression that resolves to a D3DX8 object.
- Filename
- String the specifies the name of the file from which to load the progressive mesh.
- D3DDevice
- Direct3DDevice8 object, the device object associated with the progressive mesh.
- RetMaterials
- D3DXBuffer object. When this method returns, this parameter is filled with an array of D3DXMATERIAL types, containing information saved in the file.
- RetNumMaterials
- The number of D3DXMATERIAL types in the RetMaterials array, when the method returns.
Return Values
D3DXPMesh object representing the loaded progressive mesh.
Error Codes
If the method fails, an error is raised and Err.Number can be set to D3DXERR_INVALIDMESH.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
See Also
D3DX8.SavePMeshToFile