d3d9.dllID3DXSaveUserData
Microsoft DirectX 9.0 SDK Update (October 2004)

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.

ID3DXSaveUserData Members

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;

Interface Information

Stock Implementationd3d9.dll
Custom ImplementationNo
Inherits from Nothing
Headerd3dx9anim.h
Import libraryd3dx9.lib
Minimum operating systems Windows 98


© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.