![]() |
![]() |
![]() |
Saves a data object and its children to a .x file on disk.
Syntax
HRESULT Save(VOID);
Return Value
If the method succeeds, the return value is S_OK.
If the method fails, the return value can be the following:
D3DXFERR_BADOBJECT Data could not be read from or written to an object.
Remarks
After this method succeeds, ID3DXFileSaveObject::AddDataObject, ID3DXFileSaveData::AddDataObject and ID3DXFileSaveData::AddDataReference can no longer be called until a new ID3DXFile object is created.