티스토리 뷰

IDirect3DDevice9::SetRenderState method

Sets a single device render-state parameter.

 

Syntax

C++
HRESULT SetRenderState(
  [in] D3DRENDERSTATETYPE State,
  [in] DWORD              Value
);

Parameters

State [in]

Type: D3DRENDERSTATETYPE

Device state variable that is being modified. This parameter can be any member of the D3DRENDERSTATETYPE enumerated type.

Value [in]

Type: DWORD

New value for the device render state to be set. The meaning of this parameter is dependent on the value specified for State. For example, if State were D3DRS_SHADEMODE, the second parameter would be one member of the D3DSHADEMODE enumerated type.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. D3DERR_INVALIDCALL is returned if one of the arguments is invalid.

Requirements

Header

D3D9.h

Library

D3D9.lib

See also

IDirect3DDevice9
IDirect3DDevice9::GetRenderState
IDirect3DDevice9::SetTransform

'ComComComCom > DX .. D3D' 카테고리의 다른 글

xFile  (0) 2017.07.11
SetRenderState 로 테스트할 때 사용하기 좋은 기능들  (0) 2017.07.06
광선추적법 (ray tracing) 이 뭐지?  (2) 2017.07.03
[function] D3DXIntersectTri  (0) 2017.07.03
DirectWrite  (0) 2017.06.21
댓글