Platform SDK: DirectX |
A Direct3D device is a state machine; applications set up the state of the lighting, rendering, and transformation modules and then pass data through them during rendering. This section describes render states, provides details about each of the render states used in Direct3D Immediate Mode, and contains information about device state blocks, which applications can use to manipulate groups of devices states in a single call. The following topics are discussed.
C++ applications set most device states through the IDirect3DDevice7::SetRenderState method.
Applications developed in Visual Basic set most device states through the Direct3DDevice7.SetRenderState method.
Note Device states also include user-defined clip planes, transformations, and lighting states. For more information, see User-defined Clip Planes, the Geometry Pipeline, and Lighting and Materials.