Previous Next

D3DLIGHTINGCAPS

Obsolete in DirectX 8.0 and later versions; see Comments.

The D3DLIGHTINGCAPS structure describes the lighting capabilities of a device.

typedef struct _D3DLIGHTINGCAPS {
    DWORD  dwSize;
    DWORD  dwCaps;
    DWORD  dwLightingModel; 
    DWORD  dwNumLights;
} D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS;

Members

dwSize
Specifies the size, in bytes, of the D3DLIGHTINGCAPS structure.
dwCaps
Specifies flags describing the capabilities of the lighting module. The following flags are defined:
Value Meaning
D3DLIGHTCAPS_DIRECTIONAL Directional lights are supported.
D3DLIGHTCAPS_GLSPOT OpenGL-style spotlights are supported.
D3DLIGHTCAPS_PARALLELPOINT Parallel-point lights are supported.
D3DLIGHTCAPS_POINT Point lights are supported.
D3DLIGHTCAPS_SPOT Spotlights are supported.

dwLightingModel
Specifies flags indicating whether the lighting model is RGB or monochrome. The following flags are defined:
Value Meaning
D3DLIGHTINGMODEL_MONO The lighting model is monochromatic.
D3DLIGHTINGMODEL_RGB The lighting model is RGB.

dwNumLights
Specifies the number of lights that can be handled.

Headers

Defined in d3dcaps.h. Include d3dcaps.h.

Comments

This structure has been replaced by D3DCAPS8 (see the DirectX 8.0 SDK documentation) for DirectX 8.0 and later runtimes, but is required for legacy runtime (DirectX 7.0 and earlier) compatibility. See Reporting DirectX 8.0 Style Direct3D Capabilities for details.

This structure is a member of the D3DDEVICEDESC_V1 structure.

See Also

D3DDEVICEDESC_V1