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 int textureId=sim.getShapeTextureId(int shapeHandle)
Lua parameters
Similar to the C-function counterpart
Lua return values
Similar to the C-function counterpart