Applications use the methods of the ID3DXFile interface to create instances of the ID3DXFileEnumObject and ID3DXFileSaveObject interfaces, and to register templates.
Method | Description |
---|---|
ID3DXFile::CreateEnumObject | Creates an enumerator object that will read a .x file. |
ID3DXFile::CreateSaveObject | Creates a save object that will be used to save data to a .x file. |
ID3DXFile::RegisterEnumTemplates | Registers custom templates, given an ID3DXFileEnumObject enumeration object. |
ID3DXFile::RegisterTemplates | Registers custom templates. |
An ID3DXFile object also contains a local template store. This local storage may be added to only with the ID3DXFile::RegisterEnumTemplates and ID3DXFile::RegisterTemplates methods.
ID3DXFileEnumObject and ID3DXFileSaveObject objects created with ID3DXFile::CreateEnumObject and ID3DXFile::CreateSaveObject also utilize the template store of the parent ID3DXFile object.
The ID3DXFile interface is obtained by calling the D3DXFileCreate function.
The globally unique identifier (GUID) for the ID3DXFile interface is IID_ID3DXFile.
The LPD3DXFILE type is defined as a pointer to the ID3DXFile interface.
typedef interface ID3DXFile *LPD3DXFILE;
Header: Declared in D3dx9xof.h.
Import Library: Use D3dx9.lib.