Microsoft DirectX 8.1 (C++)

D3DXConvertMeshSubsetToSingleStrip

Converts the specified mesh subset into a single triangle strip.

HRESULT D3DXConvertMeshSubsetToSingleStrip(
  LPD3DXBASEMESH          MeshIn,
  DWORD                   AttribId,
  DWORD                   IBOptions,
  LPDIRECT3DINDEXBUFFER8* ppIndexBuffer,
  DWORD*                  pNumIndices
);

Parameters

MeshIn
[in] Pointer to a ID3DXBaseMesh interface, representing the mesh to convert to a strip.
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 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

Requirements

  Header: Declared in D3dx8mesh.h.
  Import Library: Use D3dx8.lib.