Regular API function


Description Sets the color of an array element of an OpenGl-based custom UI. simCreateUIButtonArray needs to be called previously
C synopsis simInt simSetUIButtonArrayColor(simInt uiHandle,simInt buttonHandle,const simInt* position,const simFloat* color)
C parameters
uiHandle: OpenGl-based custom UI handle
buttonHandle: button handle
position: position in the array from left to right and top to bottom (x and y)
color: color of the array element (red, green and blue values, 0=minimum intensity, 1=maximum intensity)
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis number result=simSetUIButtonArrayColor(number uiHandle,number buttonHandle,table_2 position,table_3 color)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page