Difference between revisions of "Mesh:setCullMode"
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(...") |
|||
Line 9: | Line 9: | ||
</source> | </source> | ||
− | '''cullmode''' is of type | + | '''cullmode''' is of type integer and can be one of the following values: |
− | *''' | + | *'''1''' = CULL_NONE |
− | *''' | + | *'''2''' = CULL_FRONT |
− | *''' | + | *'''3''' = CULL_BACK |
=== Parameters === | === Parameters === | ||
− | '''cullmode''': ( | + | '''cullmode''': (number) one of the available culling mode<br/> |
=== Example === | === Example === |
Revision as of 01:20, 18 September 2022
Available since: Gideros 2021.11
Class: Mesh
Description
Sets the mesh face culling mode.
Mesh:setsetCullMode(cullmode)
cullmode is of type integer and can be one of the following values:
- 1 = CULL_NONE
- 2 = CULL_FRONT
- 3 = CULL_BACK
Parameters
cullmode: (number) one of the available culling mode
Example
- 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