Mesh:setIndexArray: Difference between revisions

From GiderosMobile
No edit summary
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 ===
Assigns new content to the index array, dropping all the elements contained in the index array before the call and replacing them by those specified by the parameters. It accepts multiple values or a Lua array.<br />
Assigns new content to the index array, dropping all the elements contained in the index array before the call and replacing them by those specified by the parameters. It accepts multiple values or a Lua array.
<br /></translate>
<syntaxhighlight lang="lua">
<source lang="lua">
Mesh:setIndexArray(indices)
Mesh:setIndexArray(indices)
</syntaxhighlight>
</source>
 
=== <translate>Parameters</translate> ===
=== Parameters ===
'''indices''': (any) <translate></translate> <br/>
'''indices''': (any) <br/>
=== <translate>Examples</translate> ===
 
'''Example'''<br/>
=== Examples ===
<source lang="lua">-- set the index array as 10, 11 and 12.
<syntaxhighlight lang="lua">
-- set the index array as 10, 11 and 12
mesh:setIndexArray(10, 11, 12)
mesh:setIndexArray(10, 11, 12)


-- same as above
-- same as above
mesh:setIndexArray{10, 11, 12}</source>
mesh:setIndexArray{10, 11, 12}
</syntaxhighlight>
 
{{Mesh}}

Latest revision as of 13:30, 13 July 2023