Partager via


D3DLIGHTTYPE

This enumeration defines the light type.

typedef enum _D3DLIGHTTYPE {
  D3DLIGHT_POINT = 1,
  D3DLIGHT_SPOT = 2,
  D3DLIGHT_DIRECTIONAL = 3,
  D3DLIGHT_FORCE_DWORD = 0x7fffffff
} D3DLIGHTTYPE;

Constants

  • D3DLIGHT_POINT
    Light is a point source. The light has a position in space and radiates light in all directions.
  • D3DLIGHT_SPOT
    Not supported in Windows CE.
  • D3DLIGHT_DIRECTIONAL
    Light is a directional source. This is equivalent to using a point light source at an infinite distance.
  • D3DLIGHT_FORCE_DWORD
    Forces this enumeration to compile to 32 bits in size. This value is not used.

Remarks

Directional lights are slightly faster than point light sources, but point lights look a little better.

Requirements

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

See Also

D3DLIGHT8

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.