D3DLIGHTSTATETYPE

The D3DLIGHTSTATETYPE enumerated type defines the light state for the D3DOP_STATELIGHT opcode. This enumerated type is part of the D3DSTATE structure.

typedef enum _D3DLIGHTSTATETYPE {

D3DLIGHTSTATE_MATERIAL = 1,

D3DLIGHTSTATE_AMBIENT = 2,

D3DLIGHTSTATE_COLORMODEL = 3,

D3DLIGHTSTATE_FOGMODE = 4,

D3DLIGHTSTATE_FOGSTART = 5,

D3DLIGHTSTATE_FOGEND = 6,

D3DLIGHTSTATE_FOGDENSITY = 7,

D3DLIGHTSTATE_FORCE_DWORD = 0x7fffffff,

} D3DLIGHTSTATETYPE;

Members

D3DLIGHTSTATE_MATERIAL

Defines the material that is lit and used to compute the final color and intensity values during rasterization. The default value is NULL.

This value must be set when you use textures in ramp mode.

D3DLIGHTSTATE_AMBIENT

Sets the color and intensity of the current ambient light. If an application specifies this value, it should not specify a light as a parameter. The default value is 0.

D3DLIGHTSTATE_COLORMODEL

One of the members of the D3DCOLORMODEL enumerated type. The default value is D3DCOLOR_RGB.

D3DLIGHTSTATE_FOGMODE

One of the members of the D3DFOGMODE enumerated type. The default value is D3DFOG_NONE.

D3DLIGHTSTATE_FOGSTART

Defines the starting value for fog. The default value is 1.0.

D3DLIGHTSTATE_FOGEND

Defines the ending value for fog. The default value is 100.0.

D3DLIGHTSTATE_FOGDENSITY

Defines the density setting for fog. The default value is 1.0.

D3DLIGHTSTATE_FORCE_DWORD

Forces this enumerated type to be 32 bits in size.

QuickInfo

  Windows NT: Use version 4.0 or later.
  Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
  Windows CE: Unsupported.
  Header: Declared in d3dtypes.h.

See Also

D3DOPCODE and D3DSTATE