IDirect3DDevice9::GetIndices method
Retrieves index data.
Syntax
HRESULT GetIndices( [out] IDirect3DIndexBuffer9 **ppIndexData, [out] UINT *pBaseVertexIndex );
Parameters
- ppIndexData [out]
-
Type: IDirect3DIndexBuffer9**
Address of a pointer to an IDirect3DIndexBuffer9 interface, representing the returned index data.
- pBaseVertexIndex [out]
-
Type: UINT*
Pointer to a UINT value, holding the returned base value for vertex indices. This value is added to all indices prior to referencing vertex data, defining a starting position in the vertex streams.
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
Calling this method will increase the internal reference count on the IDirect3DIndexBuffer9 interface. Failure to call IUnknown::Release when finished using this IDirect3DIndexBuffer9 interface results in a memory leak.
Requirements
|
Header |
|
|---|---|
|
Library |
|
See also
- IDirect3DDevice9
- IDirect3DDevice9::SetIndices
- IDirect3DDevice9::DrawIndexedPrimitive
- IDirect3DDevice9::DrawIndexedPrimitiveUP
- IDirect3DDevice9::DrawPrimitive
- IDirect3DDevice9::DrawPrimitiveUP
- Index Buffers (Direct3D 9)