D3DXConvertMeshSubsetToStrips
Convert the specified mesh subset into a series of strips.
HRESULT D3DXConvertMeshSubsetToStrips(
LPD3DXBASEMESH MeshIn,
DWORD AttribId,
DWORD IBOptions,
LPDIRECT3DINDEXBUFFER8* ppIndexBuffer,
DWORD* pNumIndices,
LPD3DXBUFFER* ppStripLengths,
DWORD* pNumStrips,
);
Parameters
- MeshIn
- [in] Pointer to a ID3DXBaseMesh interface, representing the mesh to convert to strips.
- AttribId
- [in] Attirbute ID of the mesh subset to convert to strips.
- IBOptions
- [in] A combination of one or more flags from the D3DXMESH enumeration, specifying options for the create index buffer.
- ppIndexBuffer
- [out] Pointer to an ID3DXBuffer object, representing the index buffer containing the strips.
- pNumIndices
- [out] Number of indices in the buffer returned in the ppIndexBuffer parameter.
- ppStripLengths
- [out] Buffer containing an array of one DWORD per strip, in the index buffer that specifies the length of that strip.
- pNumStrips
- [out] Number of individual strips in the index buffer and corresponding strip length array.
Return Values
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be one of the following values.
Requirements
Header: Declared in D3dx8mesh.h.
Import Library: Use D3dx8.lib.