![]() |
![]() |
![]() |
Mesh.LoadHierarchy Method |
Language: |
Loads the first frame hierarchy from a Stream .
Visual Basic .NET Public Shared Function LoadHierarchy( _
ByVal stream As Stream, _
ByVal options As MeshFlags, _
ByVal device As Device, _
ByVal allocHierarchy As AllocateHierarchy, _
ByVal userDataLoader As LoadUserData _
) As AnimationRootFrameC# public static AnimationRootFrame LoadHierarchy(
Stream stream,
MeshFlags options,
Device device,
AllocateHierarchy allocHierarchy,
LoadUserData userDataLoader
);Managed C++ public: static AnimationRootFrame LoadHierarchy(
Stream *stream,
MeshFlags options,
Device *device,
AllocateHierarchy *allocHierarchy,
LoadUserData *userDataLoader
);JScript .NET public static function LoadHierarchy(
stream : Stream,
options : MeshFlags,
device : Device,
allocHierarchy : AllocateHierarchy,
userDataLoader : LoadUserData
) : AnimationRootFrame;
stream System.IO.Stream. A Stream object that contains the mesh hierarchy to load.
options Microsoft.DirectX.Direct3D.MeshFlags. One or more flags from the Mesh enumeration that specify creation options for the mesh (excepting the Simplify* and Optimize* flags). device Microsoft.DirectX.Direct3D.Device. The Deviceto associate with the mesh. allocHierarchy Microsoft.DirectX.Direct3D.AllocateHierarchy. An AllocateHierarchy object. userDataLoader Microsoft.DirectX.Direct3D.LoadUserData. Application-provided object that allows loading of user data. For more information, see LoadUserData.
Microsoft.DirectX.Direct3D.AnimationRootFrame . An AnimationRootFrame. The AnimationRootFrame.AnimationController property contains an AnimationController that corresponds to an animation, created with default tracks and events, in the DirectX (.x) file.
All meshes in the file are collapsed into one output mesh. If the file contains a frame hierarchy, all of the transformations are applied to the mesh.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException Microsoft® Direct3D® could not allocate sufficient memory to complete the call.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center