sim.getShapeTextureId

Retrieves the texture ID of a texture that is applied to a specific shape

Synopsis

int textureId = sim.getShapeTextureId(int shapeHandle) int textureId = sim.getShapeTextureId(int shapeHandle)

Arguments

  • shapeHandle: handle of the shape.

Return values

  • textureId: texture ID, or -1 if texture does not exist


See also: