ID3DXSaveUserData interface

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.

Members

The ID3DXSaveUserData interface inherits from the IUnknown interface. ID3DXSaveUserData also has these types of members:

Methods

The ID3DXSaveUserData interface has these methods.

Method Description
AddFrameChildData Add child data to the frame.
AddMeshChildData Add child data to the mesh.
AddTopLevelDataObjectsPost Add a top level object after the frame hierarchy.
AddTopLevelDataObjectsPre Add a top level object before the frame hierarchy.
RegisterTemplates A callback for the user to register a .x file template.
SaveTemplates A callback for the user to save a .x file template.

 

Remarks

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

typedef interface ID3DXSaveUserData ID3DXSaveUserData;
typedef interface ID3DXSaveUserData *LPD3DXSAVEUSERDATA;

Requirements

Requirement Value
Header
D3dx9anim.h
Library
D3dx9.lib

See also

D3DX Interfaces