Difference between revisions of "Mesh:setCullMode"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
m
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
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 ;-) .
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
Mesh:setsetCullMode(cullmode)
+
Mesh:setCullMode(cullmode)
 
</syntaxhighlight>
 
</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:
*'''Sprite.CULL_NONE''' = 0
+
*'''Sprite.CULL_NONE''' = 0 ('''default''')
 
*'''Sprite.CULL_FRONT ''' = 1
 
*'''Sprite.CULL_FRONT ''' = 1
 
*'''Sprite.CULL_BACK ''' = 2
 
*'''Sprite.CULL_BACK ''' = 2

Revision as of 22:10, 13 December 2025