Difference between revisions of "Mesh:isAttributeEnabled"
(Created page) |
Jirkamarsik (talk | contribs) m |
||
Line 7: | Line 7: | ||
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|string|name|The name of the vertex attribute to | + | {{param|string|name|The name of the vertex attribute to be checked.}} |
=== Returns === | === Returns === | ||
{{param|boolean|enabled|Whether the vertex attribute is used when drawing this Mesh.}} | {{param|boolean|enabled|Whether the vertex attribute is used when drawing this Mesh.}} |
Latest revision as of 14:00, 1 June 2018
Available since LÖVE 0.10.0 |
This function is not supported in earlier versions. |
Gets whether a specific vertex attribute in the Mesh is enabled. Vertex data from disabled attributes is not used when drawing the Mesh.
Function
Synopsis
enabled = Mesh:isAttributeEnabled( name )
Arguments
string name
- The name of the vertex attribute to be checked.
Returns
boolean enabled
- Whether the vertex attribute is used when drawing this Mesh.
Notes
If a Mesh wasn't created with a custom vertex format, it will have 3 vertex attributes named VertexPosition
, VertexTexCoord
, and VertexColor
. Otherwise the attribute name must either match one of the vertex attributes specified in the vertex format when creating the Mesh,
or must match a vertex attribute from another Mesh attached to this Mesh via Mesh:attachAttribute.
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