ID3DXFile::CreateEnumObject method

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

Syntax

HRESULT CreateEnumObject(
  [out] LPCVOID               pvSource,
  [in]  D3DXF_FILELOADOPTIONS loadflags,
  [out] ID3DXFileEnumObject   **ppEnumObj
);

Parameters

pvSource [out]

Type: LPCVOID

The data source. Either:

Depending on the value of loadflags.

loadflags [in]

Type: D3DXF_FILELOADOPTIONS

Value that specifies the source of the data. This value can be one of the D3DXF_FILELOADOPTIONS flags.

ppEnumObj [out]

Type: ID3DXFileEnumObject**

Address of a pointer to an ID3DXFileEnumObject interface, representing the created enumerator object.

Return value

Type: HRESULT

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

Requirement Value
Header
D3DX9Xof.h
Library
D3dx9.lib

See also

ID3DXFile

ID3DXFileEnumObject