Regular API function

simGetLightParameters / sim.getLightParameters

Description Retrieves various parameters of a light object. See also sim.setLightParameters.
C synopsis simInt simGetLightParameters(simInt objectHandle,simFloat* setToNULL,simFloat* diffusePart,simFloat* specularPart)
C parameters
objectHandle: handle of the light
setToNULL: not used, set to nullptr
diffusePart: red, green and blue component of the light's diffuse part. Can be nullptr
specularPart: red, green and blue component of the light's specular part. Can be nullptr
C return value
-1 in case of an error, otherwise bit-coded: for now, only bit 0 is used: 1=light on
Lua synopsis int state,table[3] zero,table[3] diffusePart,table[3] specularPart=sim.getLightParameters(int objectHandle)
Lua parameters
objectHandle: handle of the light
Lua return values
state:bit-coded: for now, only bit 0 is used: 1=light on.
zero: ignore this value
diffusePart: red, green and blue component of the light's diffuse part
specularPart: red, green and blue component of the light's specular part