D3DLIGHTINGCAPS
The D3DLIGHTINGCAPS structure describes the lighting capabilities of a device. This structure is a member of the D3DDEVICEDESC structure.
typedef struct _D3DLIGHTINGCAPS {
DWORD dwSize;
DWORD dwCaps;
DWORD dwLightingModel;
DWORD dwNumLights;
} D3DLIGHTINGCAPS, *LPD3DLIGHTINGCAPS;
Members
- dwSize
- Size, in bytes, of this structure. This member must be initialized before the structure is used.
- dwCaps
- Flags describing the capabilities of the lighting module. The following flags are defined:
- D3DLIGHTCAPS_DIRECTIONAL
- Supports directional lights.
- D3DLIGHTCAPS_GLSPOT
- Not used.
- D3DLIGHTCAPS_PARALLELPOINT
- Supports parallel point lights.
- D3DLIGHTCAPS_POINT
- Supports point lights.
- D3DLIGHTCAPS_SPOT
- Supports spotlights.
- dwLightingModel
- Flags defining whether the lighting model is RGB or monochrome. The following flags are defined:
- D3DLIGHTINGMODEL_MONO
- Monochromatic lighting model.
- D3DLIGHTINGMODEL_RGB
- RGB lighting model.
- dwNumLights
- Number of lights that can be handled.
Windows NT/2000: Requires Windows NT 4.0 SP3 or later.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in d3dcaps.h.