simSetObjectColor
Sets the color of a scene object
C++ synopsis
int simSetObjectColor(int objectHandle, int index, int colorComponent, float* rgbData)
Arguments
- objectHandle: handle of the object
- index: zero-based index of the color, if the object has several colors
- colorComponent: color component
- rgbData: red, green and blue components of the color (3 values)
Return
- -1 if operation was not successful, 0 if the index was not found in the object, 1 otherwise.
See also:
|