d3d9.dllSave
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXPMesh::Save Method


Saves the progressive mesh to the specified stream object.

Syntax

HRESULT Save(      

    IStream *pStream,     const D3DXMATERIAL *pMaterials,     CONST D3DXEFFECTINSTANCE* pEffectInstances,     DWORD NumMaterials );

Parameters

pStream
[in] Pointer to an IStream interface, representing the stream object to which the file data is written.
pMaterials
[in] Pointer to an array of D3DXMATERIAL structures, containing material information to be saved in the stream object.
pEffectInstances
[in] Pointer to an array of effect instances, one per attribute group in the mesh. An effect instance is a particular instance of state information used to initialize an effect. For more information, see D3DXEFFECTINSTANCE.
NumMaterials
[in] Number of D3DXMATERIAL structures in the pMaterials array.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
D3DXERR_INVALIDDATAThe data is invalid.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


Remarks

For more information about the IStream interface, see the Microsoft Platform Software Development Kit (SDK).



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.