This interface is implemented by the application to save any additional user data embedded in .x files. An instance of this interface is passed to D3DXSaveMeshHierarchyToFile, and D3DX calls the appropriate method on this interface every time the appropriate data is encountered. For example, for each frame object in the .x file, ID3DXSaveUserData::AddFrameChildData is called and passed the child data.
Method | Description |
---|---|
ID3DXSaveUserData::AddFrameChildData | Add child data to the frame. |
ID3DXSaveUserData::AddMeshChildData | Add child data to the mesh. |
ID3DXSaveUserData::AddTopLevelDataObjectsPost | Add a top level object after the frame hierarchy. |
ID3DXSaveUserData::AddTopLevelDataObjectsPre | Add a top level object before the frame hierarchy. |
ID3DXSaveUserData::RegisterTemplates | A callback for the user to register a .x file template. |
ID3DXSaveUserData::SaveTemplates | A callback for the user to save a .x file template. |
The LPD3DXSAVEUSERDATA type is defined as a pointer to this interface.
typedef interface ID3DXSaveUserData ID3DXSaveUserData; typedef interface ID3DXSaveUserData *LPD3DXSAVEUSERDATA;
Header: Declared in D3dx9anim.h.
Import Library: Use D3dx9.lib.