Difference between revisions of "Mesh:setTexture"

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

Latest revision as of 14:30, 13 July 2023