Mesh:setTexture: Difference between revisions

From GiderosMobile
No edit summary
m Text replacement - "</source>" to "</syntaxhighlight>"
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2012.09<br/>
'''Available since:''' Gideros 2012.09<br/>
'''Class:''' [[Mesh]]<br/>
=== Description ===
=== Description ===
<br />
Sets the texture of the mesh.
Sets the texture.<br />
<syntaxhighlight lang="lua">
<br />
Mesh:setTexture(texture,slot)
<source lang="lua">
</syntaxhighlight>
Mesh:setTexture(texture,slot)
 
</source>
=== Parameters ===
=== Parameters ===
'''texture''': (TextureBase) <br/>
'''texture''': (TextureBase) the texture<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) 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/>
 
{{Mesh}}

Latest revision as of 13:30, 13 July 2023