The IDirect3DDevice3::DrawIndexedPrimitiveStrided method renders a geometric primitive based on indexing into an array of strided vertices. For more information, see Strided Vertex Format.
HRESULT DrawIndexedPrimitiveStrided(
D3DPRIMITIVETYPE d3dptPrimitiveType,
DWORD dwVertexTypeDesc,
LPD3DDRAWPRIMITIVESTRIDEDDATA lpVertexArray,
DWORD dwVertexCount,
LPWORD lpwIndices,
DWORD dwIndexCount,
DWORD dwFlags
);
Note that the D3DPT_POINTLIST member of D3DPRIMITIVETYPE is not indexed.
Notice that this parameter is used differently from the dwVertexCount parameter in the IDirect3DDevice3::DrawPrimitive method. In that method, the dwVertexCount parameter gives the number of vertices to draw, but here it gives the total number of vertices in the array pointed to by the lpVertexArray parameter. When you call IDirect3DDevice3::DrawIndexedPrimitiveStrided, you specify the number of vertices to draw in the dwIndexCount parameter.
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value may be one of the following values:
D3DERR_INVALIDRAMPTEXTURE |
D3DERR_INVALIDPRIMITIVETYPE |
D3DERR_INVALIDVERTEXTYPE |
DDERR_INVALIDPARAMS |
DDERR_WASSTILLDRAWING |
This method does not support transformed vertices. As a result, if you include the D3DFVF_XYZRHW vertex format descriptor in the dwVertexTypeDesc parameter, the method fails, returning D3DERR_INVALIDVERTEXTYPE.
This method was introduced with the IDirect3DDevice3 interface.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in d3d.h.
Import Library: Use ddraw.lib.
IDirect3DDevice3::DrawPrimitive, IDirect3DDevice3::DrawPrimitiveStrided, IDirect3DDevice3::DrawPrimitiveVB, IDirect3DDevice3::DrawIndexedPrimitive, IDirect3DDevice3::DrawIndexedPrimitiveVB, Strided Vertex Format