IDirect3DDevice9::GetIndices 方法 (d3d9helper.h)

检索索引数据。

语法

HRESULT GetIndices(
  IDirect3DIndexBuffer9 **ppIndexData
);

参数

ppIndexData

类型:[out] IDirect3DIndexBuffer9**

指向 IDirect3DIndexBuffer9 接口的指针的地址,表示返回的索引数据。

返回值

类型: HRESULT

如果该方法成功,则返回值D3D_OK。 如果方法失败,则可以D3DERR_INVALIDCALL返回值。

注解

调用此方法会增加 IDirect3DIndexBuffer9 接口上的内部引用计数。 使用此 IDirect3DIndexBuffer9 接口时调用 IUnknown::Release 失败会导致内存泄漏。

要求

要求
目标平台 Windows
标头 d3d9helper.h (包括 D3D9.h)
Library D3D9.lib

另请参阅

IDirect3DDevice9

IDirect3DDevice9::DrawIndexedPrimitive

IDirect3DDevice9::DrawIndexedPrimitiveUP

IDirect3DDevice9::DrawPrimitive

IDirect3DDevice9::DrawPrimitiveUP

IDirect3DDevice9::SetIndices

(Direct3D 9) 索引缓冲区