Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets index data.
Syntax
HRESULT SetIndices(
[in] IDirect3DIndexBuffer9 *pIndexData
);
Parameters
[in] pIndexData
Type: IDirect3DIndexBuffer9*
Pointer to an IDirect3DIndexBuffer9 interface, representing the index data to be set.
Return value
Type: HRESULT
If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be: D3DERR_INVALIDCALL.
Remarks
When an application no longer holds a references to this interface, the interface will automatically be freed.
The IDirect3DDevice9::SetIndices method sets the current index array to an index buffer. The single set of indices is used to index all streams.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d9helper.h (include D3D9.h) |
Library | D3D9.lib |
See also
IDirect3DDevice9::DrawIndexedPrimitive
IDirect3DDevice9::DrawIndexedPrimitiveUP
IDirect3DDevice9::DrawPrimitive