Athugasemd
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
The CreateLight function creates a light source.
Syntax
PFND3DDDI_CREATELIGHT Pfnd3dddiCreatelight;
HRESULT Pfnd3dddiCreatelight(
HANDLE hDevice,
const D3DDDIARG_CREATELIGHT *unnamedParam2
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
unnamedParam2
pData [in]
A pointer to a D3DDDIARG_CREATELIGHT structure that contains the index into the light array.
Return value
CreateLight should return S_OK or an appropriate error result if it cannot successfully create a light source.
Remarks
The user-mode display driver should enlarge its light array as necessary to accommodate at least as many light sources as specified by the Index member in D3DDDIARG_CREATELIGHT.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |