ID3DXFileData

Applications use the methods of the ID3DXFileData interface to build or to access the immediate hierarchy of the data object. Template restrictions determine the hierarchy.

ID3DXFileData Members

Method Description
ID3DXFileData::GetChild Retrieves a child object in this file data object.
ID3DXFileData::GetChildren Retrieves the number of children in this file data object.
ID3DXFileData::GetEnum Retrieves the enumeration object in this file data object.
ID3DXFileData::GetId Retrieves the GUID of this file data object.
ID3DXFileData::GetName Retrieves the name of this file data object.
ID3DXFileData::GetType Retrieves the template ID in this file data object.
ID3DXFileData::IsReference Indicates whether this file data object is a reference object that points to another child data object.
ID3DXFileData::Lock Accesses the .x file data.
ID3DXFileData::Unlock Ends the lifespan of the ID3DXFileData::Lock pointer.

Remarks

Data types allowed by the template are called optional members. The optional members are not required, but an object might miss important information without them. These optional members are saved as children of the data object. A child can be another data object or a reference to an earlier data object.

The GUID for the ID3DXFileData interface is IID_ID3DXFileData.

The LPD3DXFILEDATA type is defined as a pointer to this interface.

typedef interface ID3DXFileData *LPD3DXFILEDATA;

Requirements

Header: Declared in D3dx9xof.h.

Import Library: Use D3dx9.lib.