Difference between revisions of "Mesh:setCullMode"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2021.11<br/> '''Class:''' Mesh<br/> === Description === Sets the mesh face culling mode. <source lang="lua"> Mesh:setsetCullMode(...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(3 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
=== Description ===
 
=== Description ===
Sets the mesh face culling mode.
+
Sets the mesh face culling mode. Useful for 3D, not so much for 2D ;-) .
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Mesh:setsetCullMode(cullmode)
 
Mesh:setsetCullMode(cullmode)
</source>
+
</syntaxhighlight>
  
'''cullmode''' is of type string and can be one of the following values:
+
'''cullmode''' is of type integer and can be one of the following values:
*'''"CULL_NONE"'''
+
*'''Sprite.CULL_NONE''' = 0
*'''"CULL_FRONT"'''
+
*'''Sprite.CULL_FRONT ''' = 1
*'''"CULL_BACK"'''
+
*'''Sprite.CULL_BACK ''' = 2
  
 
=== Parameters ===
 
=== Parameters ===
'''cullmode''': (string) one of the cull mode type<br/>
+
'''cullmode''': (number) one of the available culling mode<br/>
 
 
=== Example ===
 
<source lang="lua">
 
</source>
 
  
 
{{Mesh}}
 
{{Mesh}}

Latest revision as of 14:30, 13 July 2023