![]() |
![]() |
Registers custom templates, given an ID3DXFileEnumObject enumeration object.
HRESULT RegisterEnumTemplates( ID3DXFileEnumObject * pEnum );
If the method succeeds, the return value is S_OK .
If the method fails, the following value will be returned:
D3DXFERR_BADVALUE.When this method is called, it copies templates stored with the ID3DXFileEnumObject, representing the file, to the local template store of the ID3DXFile object.
If an ID3DXFileEnumObject pointer is not available, call the ID3DXFile::RegisterTemplates method instead.
Header: Declared in D3dx9xof.h.