Regular API function


Description Retrieves the texture ID of a specific texture. See also simReadTexture, simWriteTexture and simCreateTexture.
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=simGetTextureId(string textureName)
Lua parameters
Same as C-function
Lua return values
Same as C-function

All regular API functions on one page