![]() |
![]() |
![]() |
Creates an instance of an ID3DXFile object.
Syntax
STDAPI D3DXFileCreate(
ID3DXFile **lplpDirectXFile );
Parameters
- lplpDirectXFile
- Address of a pointer to an ID3DXFile interface, representing the created .x file object.
Return Value
If the function succeeds, the return value is S_OK.
If the function fails, the return value can be one of the following values:
E_POINTER An invalid pointer, usually NULL, was passed as a parameter. E_OUTOFMEMORY Microsoft Direct3D could not allocate sufficient memory to complete the call.
Remarks
After using this function, use ID3DXFile::RegisterTemplates or ID3DXFile::RegisterEnumTemplates to register templates, ID3DXFile::CreateEnumObject to create an enumerator object, or ID3DXFile::CreateSaveObject to create a save object.
Function Information
Header d3dx9xof.h Import library d3dx9.lib Minimum operating systems Windows 98
See Also
ID3DXFile::CreateEnumObject, ID3DXFile::CreateSaveObject, ID3DXFile::RegisterEnumTemplates, ID3DXFile::RegisterTemplates