Regular API function

simGetTextureId / sim.getTextureId

Description Retrieves the texture ID of a specific texture. See also sim.readTexture, sim.writeTexture and sim.createTexture.
C synopsis simInt simGetTextureId(const simChar* textureName,simInt* resolution)
C parameters
textureName: the name of the texture ID to be retrieved.
resolution: a pointer to 2 integer values representing the resolution of the texture. Can be NULL.
C return value
The texture ID, or -1 if the texture does not exist or in case of an error
Lua synopsis number textureId,table_2 resolution=sim.getTextureId(string textureName)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page