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:
- A file name
- A D3DXF_FILELOADMEMORY structure
- A D3DXF_FILELOADRESOURCE structure
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 |
|
Library |
|
See also