simSetLightParameters
Sets various parameters of a light object
C++ synopsis
int simSetLightParameters(int objectHandle, int state, const float* setToNULL,
const float* diffusePart, const float* specularPart)
Arguments
- objectHandle: handle of the light
- state: bit-coded:
- bit0 is set (1): light on
- 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 if operation was not successful
See also:
|