// d3dcaps.h
typedef struct _D3DLIGHTINGCAPS {
DWORD dwSize;
DWORD dwCaps;
DWORD dwLightingModel;
DWORD dwNumLights;
} D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS;
View the official Windows Driver Kit DDI referenceNo description available.
Obsolete in DirectX 8.0 and later versions; see Remarks.
The D3DLIGHTINGCAPS structure describes the lighting capabilities of a device.
dwSizeSpecifies the size, in bytes, of the D3DLIGHTINGCAPS structure.
dwCapsSpecifies 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. |
dwLightingModelSpecifies 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. |
dwNumLightsSpecifies the number of lights that can be handled.
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 DirectX 7.0 and earlier runtime compatibility. See Reporting DirectX 8.0 Style Direct3D Capabilities for details.
This structure is a member of the D3DDEVICEDESC_V1 structure.