Difference between revisions of "Mesh:setGenericArray"
From GiderosMobile
| Line 1: | Line 1: | ||
| __NOTOC__ | __NOTOC__ | ||
| − | '''Available since:''' Gideros 2017.4<br/> | + | '''<translate>Available since</translate>:''' Gideros 2017.4<br/> | 
| − | === Description === | + | === <translate>Description</translate> === | 
| <translate><br /> | <translate><br /> | ||
| Assigns new content to a generic additional array to be used by a shader. It accepts multiple values or a Lua array.<br /> | Assigns new content to a generic additional array to be used by a shader. It accepts multiple values or a Lua array.<br /> | ||
| Line 8: | Line 8: | ||
|   Mesh:setGenericArray(index,type,mult,count,data) |   Mesh:setGenericArray(index,type,mult,count,data) | ||
| </source> | </source> | ||
| − | === Parameters === | + | === <translate>Parameters</translate> === | 
| '''index''': (number) <translate>The data attribute index in the corresponding shader</translate> <br/> | '''index''': (number) <translate>The data attribute index in the corresponding shader</translate> <br/> | ||
| '''type''': (number) <translate>The data type, one of Shader.Dxxx constants</translate> <br/> | '''type''': (number) <translate>The data type, one of Shader.Dxxx constants</translate> <br/> | ||
Revision as of 07:27, 24 August 2018
Available since: Gideros 2017.4
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 
