DirectX SDK |
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.
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.
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.