IDirect3DDevice9::SetIndices 메서드(d3d9helper.h)

인덱스 데이터를 설정합니다.

구문

HRESULT SetIndices(
  [in] IDirect3DIndexBuffer9 *pIndexData
);

매개 변수

[in] pIndexData

형식: IDirect3DIndexBuffer9*

설정할 인덱스 데이터를 나타내는 IDirect3DIndexBuffer9 인터페이스에 대한 포인터입니다.

반환 값

형식: HRESULT

메서드가 성공하면 반환 값이 D3D_OK. 메서드가 실패하면 반환 값은 D3DERR_INVALIDCALL 일 수 있습니다.

설명

애플리케이션이 더 이상 이 인터페이스에 대한 참조를 보유하지 않으면 인터페이스가 자동으로 해제됩니다.

IDirect3DDevice9::SetIndices 메서드는 현재 인덱스 배열을 인덱스 버퍼로 설정합니다. 인덱스의 단일 집합은 모든 스트림을 인덱싱하는 데 사용됩니다.

요구 사항

   
대상 플랫폼 Windows
헤더 d3d9helper.h(D3D9.h 포함)
라이브러리 D3D9.lib

추가 정보

IDirect3DDevice9

IDirect3DDevice9::DrawIndexedPrimitive

IDirect3DDevice9::DrawIndexedPrimitiveUP

IDirect3DDevice9::DrawPrimitive

IDirect3DDevice9::DrawPrimitiveUP

IDirect3DDevice9::GetIndices

인덱스 버퍼(Direct3D 9)