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/C++
synopsis
simInt simGetTextureId(const simChar* textureName,simInt* resolution)
C/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 nullptr.
C/C++
return value
The texture ID, or -1 if the texture does not exist or in case of an error
Lua
synopsis
int textureId,int[2] resolution=sim.getTextureId(string textureName)
Lua
parameters
Similar to the C-function counterpart
Lua
return values
Similar to the C-function counterpart
Python
synopsis
int textureId,list resolution=sim.getTextureId(string textureName)