设置渲染状态
HRESULT SetRenderState(
D3DRENDERSTATETYPE State, //需要渲染的状态
DWORD Value //代表设置的渲染状态的值
);
Parameters
State
- [in] Device state variable that is being modified. This parameter can be any member of the D3DRENDERSTATETYPE enumerated type.
Value- [in] 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.
- 也就是根据第一个参数取值的不同,决定第二个参数取何枚举常量