Share via


D3DLIGHTINGCAPS

Obsolete in Microsoft DirectX® 8.0 and later versions; see Remarks section of this API.

This 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 Description
    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 Description
    D3DLIGHTINGMODEL_MONO The lighting model is monochromatic.
    D3DLIGHTINGMODEL_RGB The lighting model is RGB.
  • dwNumLights
    Specifies the number of lights that can be handled.

Remarks

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 run time (DirectX 7.0 and earlier) compatibility.

This structure is a member of the D3DDEVICEDESC_V1 structure.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3dcaps.h.

See Also

D3DCAPS8 | D3DDEVICEDESC_V1 | Other Direct3D Driver Structures

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.