Microsoft DirectX 9.0 SDK Update (October 2004)

SkinMesh.FromX Method

Language:

Note: This documentation is preliminary and is subject to change.

Loads skin information and mesh data from a Microsoft® Direct3D® .x file data object.

Definition

Visual Basic .NET Public Shared Function FromX( _
    ByVal xofObjMesh As XFileData, _
    ByVal options As MeshFlags, _
    ByVal device As Device, _
    ByRef adjacency As GraphicsStream, _
    ByRef materials As ExtendedMaterial _
) As SkinMesh
C# public static SkinMesh FromX(
    XFileData xofObjMesh,
    MeshFlags options,
    Device device,
    out GraphicsStream adjacency,
    out ExtendedMaterial materials
);
Managed C++ public: static SkinMesh FromX(
    XFileData *xofObjMesh,
    MeshFlags options,
    Device *device,
    GraphicsStream **adjacency,
    ExtendedMaterial *materials
);
JScript .NET public static function FromX(
    xofObjMesh : XFileData,
    options : MeshFlags,
    device : Device,
    adjacency : GraphicsStream,
    materials : ExtendedMaterial
) : SkinMesh;

Parameters

xofObjMesh Microsoft.DirectX.Direct3D.XFileData. An XFileData object that represents the Microsoft® DirectX® file data object to load.
options Microsoft.DirectX.Direct3D.MeshFlags. A MeshFlags enumeration that specifies creation options for the mesh.
device Microsoft.DirectX.Direct3D.Device. A Device object associated with the mesh.
adjacency Microsoft.DirectX.GraphicsStream. A GraphicsStream object representing an array of three Int32 Leave Site values per face that specify the three neighbors for each face in the mesh.
materials Microsoft.DirectX.Direct3D.ExtendedMaterial[]. Array of ExtendedMaterial objects loaded from the .x file data object.

Return Value

Microsoft.DirectX.Direct3D.SkinMesh . A SkinMesh structure that contains the skin and mesh data from the .x file object.

Remarks

Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
InvalidDataException The data is invalid.
OutOfMemoryException Leave Site Microsoft® Direct3D® could not allocate sufficient memory to complete the call.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center