Microsoft DirectX 8.1 (C++)

ID3DXPMesh::Save

Saves the progressive mesh to the specified stream object.

HRESULT Save(
  IStream* pStream,
  LPD3DXMATERIAL pMaterials,
  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.
NumMaterials
[in] Number of D3DXMATERIAL structures in the pMaterials array

Return Values

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_INVALIDCALL
D3DXERR_INVALIDDATA
E_OUTOFMEMORY

Remarks

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

Requirements

  Header: Declared in D3dx8mesh.h.
  Import Library: Use D3dx8.lib.