Skip to content

Latest commit

 

History

History
88 lines (61 loc) · 2.6 KB

nc-d3dumddi-pfnd3dddi_setlight.md

File metadata and controls

88 lines (61 loc) · 2.6 KB
UID title description old-location tech.root ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3dumddi.PFND3DDDI_SETLIGHT
PFND3DDDI_SETLIGHT (d3dumddi.h)
The SetLight function sets properties for a light source.
display\setlight.htm
display
05/10/2018
PFND3DDDI_SETLIGHT callback function
PFND3DDDI_SETLIGHT, PFND3DDDI_SETLIGHT callback, SetLight, SetLight callback function [Display Devices], UserModeDisplayDriver_Functions_82c42629-2344-4778-aaf4-e41acac4cfce.xml, d3dumddi/SetLight, display.setlight
d3dumddi.h
D3dumddi.h
Desktop
Available in Windows Vista and later versions of the Windows operating systems.
Windows
PFND3DDDI_SETLIGHT
d3dumddi/PFND3DDDI_SETLIGHT
APIRef
kbSyntax
UserDefined
d3dumddi.h
PFND3DDDI_SETLIGHT

PFND3DDDI_SETLIGHT callback function

-description

The SetLight function sets properties for a light source.

-parameters

-param hDevice [in]

A handle to the display device (graphics context).

-param unnamedParam2

pData [in]

A pointer to a D3DDDIARG_SETLIGHT structure that describes how to set the light source.

-param unnamedParam3

pLightProperties [in]

A pointer to a D3DDDI_LIGHT structure that describes the light properties to set.

-returns

SetLight returns S_OK or an appropriate error result if the light properties are not successfully set.

-remarks

Light properties describe the type and color of a light source. Depending on the type of light that is being used, a light can have properties for attenuation and range or for spotlight effects. However, not all types of lights will use all of the properties. For more information about light properties, see the Microsoft Windows SDK documentation.

-see-also

D3DDDIARG_SETLIGHT

D3DDDI_DEVICEFUNCS

D3DDDI_LIGHT