Mesh:setCullMode: Difference between revisions
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(..." |
No edit summary |
||
| (7 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 ;-) . | ||
< | <syntaxhighlight lang="lua"> | ||
Mesh: | Mesh:setCullMode(cullmode) | ||
</ | </syntaxhighlight> | ||
'''cullmode''' is of type | '''cullmode''' is of type integer and can be one of the following values: | ||
*''' | *'''Sprite.CULL_NONE''' = 0 | ||
*''' | *'''Sprite.CULL_FRONT ''' = 1 | ||
*''' | *'''Sprite.CULL_BACK ''' = 2 | ||
'''Note''': you have to pass a valid type integer for ''cullmode'', it cannot be empty nor nil | |||
=== Parameters === | === Parameters === | ||
'''cullmode''': ( | '''cullmode''': (number) one of the available culling mode<br/> | ||
{{Mesh}} | {{Mesh}} | ||
Latest revision as of 21:37, 13 December 2025
Available since: Gideros 2021.11
Class: Mesh
Description
Sets the mesh face culling mode. Useful for 3D, not so much for 2D ;-) .
Mesh:setCullMode(cullmode)
cullmode is of type integer and can be one of the following values:
- Sprite.CULL_NONE = 0
- Sprite.CULL_FRONT = 1
- Sprite.CULL_BACK = 2
Note: you have to pass a valid type integer for cullmode, it cannot be empty nor nil
Parameters
cullmode: (number) one of the available culling mode
- Mesh
- Mesh.new
- Mesh:clearColorArray
- Mesh:clearIndexArray
- Mesh:clearTexture
- Mesh:clearTextureCoordinateArray
- Mesh:clearVertexArray
- Mesh:getColor
- Mesh:getColorArraySize
- Mesh:getIndex
- Mesh:getIndexArraySize
- Mesh:getTextureCoordinate
- Mesh:getTextureCoordinateArraySize
- Mesh:getVertex
- Mesh:getVertexArraySize
- Mesh:resizeColorArray
- Mesh:resizeIndexArray
- Mesh:resizeTextureCoordinateArray
- Mesh:resizeVertexArray
- Mesh:setColor
- Mesh:setColorArray
- Mesh:setColors
- Mesh:setCullMode
- Mesh:setGenericArray
- Mesh:setIndex
- Mesh:setIndexArray
- Mesh:setIndices
- Mesh:setInstanceCount
- Mesh:setPrimitiveType
- Mesh:setTexture
- Mesh:setTextureCoordinate
- Mesh:setTextureCoordinateArray
- Mesh:setTextureCoordinates
- Mesh:setVertex
- Mesh:setVertexArray
- Mesh:setVertices
- Mesh:updateBones