Difference between revisions of "Mesh:setCullMode"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
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 ;-) . | ||
− | < | + | <syntaxhighlight lang="lua"> |
Mesh:setsetCullMode(cullmode) | Mesh:setsetCullMode(cullmode) | ||
</source> | </source> |
Revision as of 14:28, 13 July 2023
Available since: Gideros 2021.11
Class: Mesh
Description
Sets the mesh face culling mode. Useful for 3D, not so much for 2D ;-) . <syntaxhighlight lang="lua"> Mesh:setsetCullMode(cullmode) </source>
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
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:setAutoSort
- 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