Creates a save object that will be used to save data to a .x file.
HRESULT CreateSaveObject( LPCVOID pData, D3DXF_FILESAVEOPTIONS flags, D3DXF_FILEFORMAT dwFileFormat, ID3DXFileSaveObject ** ppSaveObj );
If the method succeeds, the return value is S_OK. If the method fails, the return value can be one of the following: D3DXFERR_BADVALUE, D3DXFERR_PARSEERROR.
After using this method, use methods of the ID3DXFileSaveObject interface to create data objects and to save templates or data.
For the saved file format dwFileFormat, one of the binary, legacy binary, or text flags in File Formats must be specified. The file can be compressed by using the optional D3DXF_FILEFORMAT_COMPRESSED flag.
The file format values can be combined in a logical OR to create compressed text or compressed binary files. If you indicate that the file format should be text and compressed, the file will be written out first as text and then compressed. However, compressed text files are not as efficient as binary text files; in most cases, therefore, you will want to indicate binary and compressed.
Header: Declared in D3dx9xof.h.