Platform SDK: DirectX

Light Type

[C++]

The light type property defines which type of light source you're using. The light type is set by using a value from the D3DLIGHTTYPE C++ enumeration in the dltType member of the light's D3DLIGHT7 structure. There are three types of lights in Direct3D Immediate Mode—point lights, spotlights, and directional lights. Each type illuminates objects in a scene differently, with varying levels of computational overhead. For general information about how each type of light works, see Introduction to Light Objects.

[Visual Basic]

The light type property defines which type of light source you're using. The light type is set by using a value from the CONST_D3DLIGHTTYPE Visual Basic enumeration in the dltType member of the light's D3DLIGHT7 type. There are three types of lights in Direct3D Immediate Mode—point lights, spotlights, and directional lights. Each type illuminates objects in a scene differently, with varying levels of computational overhead. For general information about how each type of light works, see Introduction to Light Objects.