Regular API function

simGetShapeTextureId / sim.getShapeTextureId

Description Retrieves the texture ID of a texture that is applied to a specific shape. See also sim.getTextureId and sim.setShapeTexture.
C synopsis simInt simGetShapeTextureId(simInt shapeHandle)
C parameters
shapeHandle: handle of the shape.
C return value
The texture ID, or -1 if the texture does not exist or in case of an error
Lua synopsis number textureId=sim.getShapeTextureId(number shapeHandle)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page