Difference between revisions of "Mesh:setGenericArray"
From GiderosMobile
Line 16: | Line 16: | ||
'''count''': (number) <translate>The number of elements in the array</translate> <br/> | '''count''': (number) <translate>The number of elements in the array</translate> <br/> | ||
'''data''': (any) <translate>The actual values</translate> <br/> | '''data''': (any) <translate>The actual values</translate> <br/> | ||
+ | |||
+ | {{Mesh}} |
Revision as of 21:56, 3 December 2019
Available since: Gideros 2017.4
Class: Mesh
Description
Assigns new content to a generic additional array to be used by a shader. It accepts multiple values or a Lua array.
Mesh:setGenericArray(index,type,mult,count,data)
Parameters
index: (number) The data attribute index in the corresponding shader
type: (number) The data type, one of Shader.Dxxx constants
mult: (number) The vector dimension (1 for simple values, 2 for a vec2/float2, etc)
count: (number) The number of elements in the array
data: (any) The actual values
- 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