Difference between revisions of "Mesh:setTexture"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2012.09<br/> === Description === <br /> Sets the texture.<br /> <br /> <source lang="lua"> = Mesh:setTexture(textureslot,) </source> '...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 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(textureslot,)
+
 
</source>
+
=== 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 15:30, 13 July 2023