D3DXConvertMeshSubsetToSingleStrip
Microsoft DirectX 9.0 SDK Update (October 2004)

D3DXConvertMeshSubsetToSingleStrip Function


Converts the specified mesh subset into a single triangle strip.

Syntax

HRESULT WINAPI D3DXConvertMeshSubsetToSingleStrip(      

    LPD3DXBASEMESH MeshIn,     DWORD AttribId,     DWORD IBOptions,     LPDIRECT3DINDEXBUFFER9 *ppIndexBuffer,     DWORD *pNumIndices );

Parameters

MeshIn
[in] Pointer to an ID3DXBaseMesh interface, representing the mesh to convert to a strip.
AttribId
[in] Attribute ID of the mesh subset to convert to strips.
IBOptions
[in] Combination of one or more flags from the D3DXMESH enumeration, specifying options for creating the index buffer.
ppIndexBuffer
[out] Pointer to an IDirect3DIndexBuffer9 interface, representing the index buffer containing the strip.
pNumIndices
[out] Number of indices in the buffer returned in the ppIndexBuffer parameter.

Return Value

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be one of the following values.

D3DERR_INVALIDCALLThe method call is invalid. For example, a method's parameter may have an invalid value.
E_OUTOFMEMORYMicrosoft Direct3D could not allocate sufficient memory to complete the call.


Remarks

Before running this function, call ID3DXMesh::Optimize or D3DXOptimizeFaces.

Function Information

Headerd3dx9mesh.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.