Difference between revisions of "Mesh:setPrimitiveType"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2019.12<br/> '''Class:''' Mesh<br/> === Description === Sets the type of primitive to render. <source lang="lua"> Mesh:setPrimiti...")
 
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the type of primitive to render.
 
Sets the type of primitive to render.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Mesh:setPrimitiveType(primitiveType)
 
Mesh:setPrimitiveType(primitiveType)
</source>
+
</syntaxhighlight>
  
 
The primitive type can be any of these:
 
The primitive type can be any of these:
*'''"Point"'''
+
*'''Mesh.PRIMITIVE_POINT'''
*'''"Lines"'''
+
*'''Mesh.PRIMITIVE_LINES'''
*'''"LineLoop"'''
+
*'''Mesh.PRIMITIVE_LINELOOP'''
*'''"Triangles"'''
+
*'''Mesh.PRIMITIVE_TRIANGLES'''
*'''"RSV_EX_TriangleFan"'''
+
*'''Mesh.PRIMITIVE_TRIANGLESTRIP'''
*'''"TriangleStrip"'''
 
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 14:01, 27 November 2024