simGetLightParameters

Retrieves various parameters of a light object

C++ synopsis

int simGetLightParameters(int objectHandle, double* setToNULL, double* diffusePart, double* specularPart)

Arguments

  • 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

Return

  • -1 in case of an error, otherwise bit-coded: for now, only bit 0 is used: 1=light on


See also: