Mesh:isAttributeEnabled

Mesh:isAttributeEnabled

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 enable or disable.

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

© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Mesh:isAttributeEnabled

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部