Difference between revisions of "Mesh:setCullMode"

From GiderosMobile
 
(5 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the mesh face culling mode. Useful for 3D, not so much for 2D ;-) .
 
Sets the mesh face culling mode. Useful for 3D, not so much for 2D ;-) .
<source lang="lua">
+
<syntaxhighlight lang="lua">
Mesh:setsetCullMode(cullmode)
+
Mesh:setCullMode(cullmode)
</source>
+
</syntaxhighlight>
  
 
'''cullmode''' is of type integer and can be one of the following values:
 
'''cullmode''' is of type integer and can be one of the following values:
Line 13: Line 13:
 
*'''Sprite.CULL_FRONT ''' = 1
 
*'''Sprite.CULL_FRONT ''' = 1
 
*'''Sprite.CULL_BACK ''' = 2
 
*'''Sprite.CULL_BACK ''' = 2
 +
 +
'''Note''': you have to pass a valid type integer for ''cullmode'', it cannot be empty nor nil
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 22:37, 13 December 2025