Difference between revisions of "Mesh:getVertexAttribute"
m (Specify that the index is one-based) |
Jirkamarsik (talk | contribs) m |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
=== Arguments === | === Arguments === | ||
− | {{param|number|vertexindex|The | + | {{param|number|vertexindex|The index of the the vertex you want to retrieve the attribute for (one-based).}} |
− | {{param|number|attributeindex|The index of the attribute within the vertex to be | + | {{param|number|attributeindex|The index of the attribute within the vertex to be retrieved (one-based).}} |
=== Returns === | === Returns === | ||
{{param|number|value1|The value of the first component of the attribute.}} | {{param|number|value1|The value of the first component of the attribute.}} |
Latest revision as of 13:54, 1 June 2018
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Gets the properties of a specific attribute within a vertex in the Mesh.
Meshes without a custom vertex format specified in love.graphics.newMesh have position as their first attribute, texture coordinates as their second attribute, and color as their third attribute.
Function
Synopsis
value1, value2, ... = Mesh:getVertexAttribute( vertexindex, attributeindex )
Arguments
number vertexindex
- The index of the the vertex you want to retrieve the attribute for (one-based).
number attributeindex
- The index of the attribute within the vertex to be retrieved (one-based).
Returns
number value1
- The value of the first component of the attribute.
number value2
- The value of the second component of the attribute.
number ...
- Any additional vertex attribute components.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info