ID3DXFile::CreateEnumObject

Creates an enumerator object that will read a .x file.

HRESULT CreateEnumObject(
  LPCVOID pvSource,
  D3DXF_FILELOADOPTIONS loadflags,
  ID3DXFileEnumObject ** ppEnumObj
);

Parameters

pvSource
[out] The data source. Either: Depending on the value of loadflags.
loadflags
[in] Value that specifies the source of the data. This value can be one of the D3DXF_FILELOADOPTIONS flags.
ppEnumObj
[out] Address of a pointer to an ID3DXFileEnumObject interface, representing the created enumerator object.

Return Values

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.

Remarks

After using this method, use one of the ID3DXFileEnumObject methods to retrieve a data object.

Requirements

Header: Declared in D3dx9xof.h.

See Also

ID3DXFileEnumObject