Mesh:setTexture: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
'''Available since:''' Gideros 2012.09<br/> | '''Available since:''' Gideros 2012.09<br/> | ||
=== Description === | === Description === | ||
<br /> | <translate><br /> | ||
Sets the texture.<br /> | Sets the texture.<br /> | ||
<br /> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
Mesh:setTexture(texture,slot) | Mesh:setTexture(texture,slot) | ||
</source> | </source> | ||
=== Parameters === | === Parameters === | ||
'''texture''': (TextureBase) | '''texture''': (TextureBase) <translate></translate> <br/> | ||
'''slot''': (number) The slot number which we are adding the Texture to (Meshes can have multiple Textures, one per slot). If omitted, slot=0 is assumed '''optional'''<br/> | '''slot''': (number) <translate>The slot number which we are adding the Texture to (Meshes can have multiple Textures, one per slot). If omitted, slot=0 is assumed</translate> '''optional'''<br/> | ||
Revision as of 12:32, 23 August 2018
Available since: Gideros 2012.09
Description
Sets the texture.
Mesh:setTexture(texture,slot)
Parameters
texture: (TextureBase)
slot: (number) The slot number which we are adding the Texture to (Meshes can have multiple Textures, one per slot). If omitted, slot=0 is assumed optional