ID3DXFileSaveObject::Save method

Saves a data object and its children to a .x file on disk.

Syntax

HRESULT Save();

Parameters

This method has no parameters.

Return value

Type: HRESULT

If the method succeeds, the return value is S_OK. If the method fails, the return value can be the following: D3DXFERR_BADOBJECT.

Remarks

After this method succeeds, ID3DXFileSaveObject::AddDataObject, ID3DXFileSaveData::AddDataObject and ID3DXFileSaveData::AddDataReference can no longer be called until a new ID3DXFile object is created.

Requirements

Requirement Value
Header
D3DX9Xof.h
Library
D3dx9.lib

See also

ID3DXFileSaveObject