Regular API function

simSetUIButtonTexture

Description Sets (or actualizes) the texture of an OpenGl-based custom UI button. This function is useful to display custom dynamic images (e.g. video camera images) inside of an OpenGl-based custom UI button. See also simSetVisionSensorImage.
C synopsis simInt simSetUIButtonTexture(simInt uiHandle,simInt buttonHandle,const simInt* size,const simChar* textureData)
C parameters
uiHandle: handle of the OpenGl-based custom UI
buttonHandle: handle of the button
size: pointer to the x- and y-resolution of the texture. Can be NULL, in which case the texture is removed from the button.
textureData: rgb data of the texture. Texture data will be copied internally, so the textureData can be released directly after this call.
C return value
-1 if operation was not successful. In a future release, a more differentiated return value might be available
Lua synopsis -
Lua parameters
-
Lua return values
-

All regular API functions on one page