DirectX SDK

About Render States

Device render states control the behavior of the Direct3D device's rasterization module. By altering the attributes of the rendering state, what type of shading is used, fog attributes, and many other rasterizer operations.

[C++]

Applications written in C++ control the other characteristics of the rendering state by invoking the IDirect3DDevice7::SetRenderState method. The D3DRENDERSTATETYPE enumerated type specifies all of the possible rendering states. Your application passes a value from the D3DRENDERSTATETYPE enumeration as the first parameter to the IDirect3DDevice7::SetRenderState method.

Render states also can control the style of texturing and how texture filtering is done. For DirectX 6.0 and later, all texture-related render states are superseded by corresponding features offered by the IDirect3DDevice7::SetTextureStageState method. Attempts to use the superseded render states with the IDirect3DDevice7 interface will fail.

D3DRENDERSTATE_TEXTUREADDRESS, D3DRENDERSTATE_TEXTUREADDRESSU and D3DRENDERSTATE_TEXTUREADDRESSV
Superseded by the D3DTSS_ADDRESS, D3DTSS_ADDRESSU, D3DTSS_ADDRESSV texture stage states.
D3DRENDERSTATE_BORDERCOLOR
Superseded by the D3DTSS_BORDERCOLOR texture stage state.
D3DRENDERSTATE_TEXTUREMAG
Superseded by the D3DTSS_MAGFILTER texture stage state.
D3DRENDERSTATE_TEXTUREMIN
Superseded by the D3DTSS_MINFILTER texture stage state. Mipmap minification filtering is superseded by D3DTSS_MIPFILTER.
D3DRENDERSTATE_TEXTUREMAPBLEND
Superseded by the D3DTSS_COLOROP and D3DTSS_ALPHAOP texture stage states.
[Visual Basic]

Visual Basic applications control the characteristics of the rendering state by invoking the Direct3DDevice7.SetRenderState method. The CONST_D3DRENDERSTATETYPE enumerated type specifies all of the possible rendering states. Your application passes a value from the CONST_D3DRENDERSTATETYPE enumeration as the first parameter to the Direct3DDevice7.SetRenderState method.