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

ID3DXFileSaveObject Interface


Applications use the methods of the ID3DXFileSaveObject interface to write a .x file to disk, and to add and save data objects and templates.

ID3DXFileSaveObject Members

AddDataObject Adds a data object as a child of the ID3DXFileSaveData object.
GetFile Gets the ID3DXFile interface of the object that created this ID3DXFileSaveObject object.
Save Saves a data object and its children to a .x file on disk.

Remarks

Templates are not required in every file. For example, you could put all templates into a single .x file rather than duplicating them in every .x file.

The ID3DXFileSaveObject interface is obtained by calling the ID3DXFile::CreateSaveObject method.

The globally unique identifier (GUID) for the ID3DXFileSaveObject interface is IID_ID3DXFileSaveObject.

The LPD3DXFILESAVEOBJECT type is defined as a pointer to this interface.

typedef interface ID3DXFileSaveObject *LPD3DXFILESAVEOBJECT;

Interface Information

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits fromIUnknown
Headerd3dx9xof.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


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