Difference between revisions of "Mesh:setTexture"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(4 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>Class</translate>:''' [[Special:MyLanguage/Mesh|Mesh]]<br/>
+
'''Class:''' [[Mesh]]<br/>
=== <translate>Description</translate> ===
+
 
<translate><br />
+
=== Description ===
Sets the texture.<br />
+
Sets the texture of the mesh.
<br /></translate>
+
<syntaxhighlight lang="lua">
<source lang="lua">
+
Mesh:setTexture(texture,slot)
Mesh:setTexture(texture,slot)
+
</syntaxhighlight>
</source>
+
 
=== <translate>Parameters</translate> ===
+
=== Parameters ===
'''texture''': (TextureBase) <translate></translate> <br/>
+
'''texture''': (TextureBase) the texture<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/>
+
'''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