Difference between revisions of "Mesh:setCullMode"

From GiderosMobile
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">
 
<source lang="lua">
 
Mesh:setsetCullMode(cullmode)
 
Mesh:setsetCullMode(cullmode)
Line 10: Line 10:
  
 
'''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:
*'''1''' = CULL_NONE
+
*'''Sprite.CULL_NONE''' = 0
*'''2''' = CULL_FRONT
+
*'''Sprite.CULL_FRONT ''' = 1
*'''3''' = CULL_BACK
+
*'''Sprite.CULL_BACK ''' = 2
  
 
=== Parameters ===
 
=== Parameters ===
 
'''cullmode''': (number) one of the available culling mode<br/>
 
'''cullmode''': (number) one of the available culling mode<br/>
 
=== Example ===
 
<source lang="lua">
 
</source>
 
  
 
{{Mesh}}
 
{{Mesh}}

Revision as of 07:09, 19 September 2022