?/TD> |
Microsoft DirectX 9.0 |
Convert the specified mesh subset into a series of strips.
Syntax
HRESULT D3DXConvertMeshSubsetToStrips(
LPD3DXBASEMESH MeshIn, DWORD AttribId, DWORD IBOptions, LPDIRECT3DINDEXBUFFER9 *ppIndexBuffer, DWORD *pNumIndices, LPD3DXBUFFER *ppStripLengths, DWORD *pNumStrips );
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 index buffer containing the strip.
- pNumIndices
- [out] Number of indices in the buffer returned in the ppIndexBuffer parameter.
- ppStripLengths
- [out] Buffer containing an array of one DWORD per strip, that specifies the number of triangles in the that strip.
- pNumStrips
- [out] Number of individual strips in the index buffer and corresponding strip length array.
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_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value. E_OUTOFMEMORY Microsoft?Direct3D?could not allocate sufficient memory to complete the call.
Function Information
Header d3dx9mesh.h Import library d3dx9.lib Minimum operating systems Windows 98