D3DXConvertMeshSubsetToSingleStrip
Converts the specified mesh subset into a single triangle strip.
HRESULT 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. Cannot be D3DXMESH_32BIT. The index buffer will be created with 32-bit or 16-bit indices, depending on the format of the index buffer of the mesh specified by the MeshIn parameter.
- 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 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: D3DERR_INVALIDCALL, E_OUTOFMEMORY.
Remarks
Before running this function, call ID3DXMesh::Optimize or D3DXOptimizeFaces, with the D3DXMESHOPT_ATTRSORT flag set.
Requirements
Header: Declared in D3dx9mesh.h.