Platform SDK: DirectX |
The IDirect3DDevice7::GetLightEnable method retrieves the activity status—enabled or disabled—for a set of lighting parameters within a device.
HRESULT GetLightEnable( DWORD dwLightIndex, BOOL* pbEnable );
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value is an error. For a complete list of Direct3D Immediate Mode error values and descriptions, see Return Values.
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Version: Requires DirectX 7.0.
Header: Declared in d3d.h.
IDirect3DDevice7::GetLight, IDirect3DDevice7::LightEnable, IDirect3DDevice7::SetLight