Difference between revisions of "Mesh:hasVertexColors"
(Created page with "{{newin|0.9.0|090|type=function}} Retrieves if the per-vertex colors are used when rendering instead of the constant color (constant color being love.graphics.setColor or...") |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{newinoldin|[[0.9.0]]|090|[[0.10.0]]|100|type=function|text=It has been replaced by [[Mesh:isAttributeEnabled]]("VertexColor")}} |
− | + | Gets whether per-vertex colors are used instead of the constant color when drawing the Mesh (constant color being [[love.graphics.setColor]].) | |
− | + | Per-vertex colors are enabled by default for a Mesh if at least one vertex color was not the default (255, 255, 255, 255) when the Mesh was [[love.graphics.newMesh|created]]. | |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | vertexcolors = Mesh:hasVertexColors( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|boolean| | + | {{param|boolean|vertexcolors|True if per-vertex coloring is used, otherwise [[love.graphics.setColor]] is used when drawing the Mesh.}} |
== See Also == | == See Also == | ||
− | * [[parent:: | + | * [[parent::Mesh]] |
− | * [[ | + | * [[Mesh:setVertexColors]] |
− | + | * [[love.graphics.newMesh]] | |
− | * [[love.graphics. | ||
− | |||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description= | + | {{#set:Description=Gets whether per-vertex colors are used when drawing the Mesh.}} |
== Other Languages == | == Other Languages == | ||
− | {{i18n| | + | {{i18n|Mesh:hasVertexColors}} |
Latest revision as of 16:33, 27 December 2015
Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 |
It has been replaced by Mesh:isAttributeEnabled("VertexColor"). |
Gets whether per-vertex colors are used instead of the constant color when drawing the Mesh (constant color being love.graphics.setColor.)
Per-vertex colors are enabled by default for a Mesh if at least one vertex color was not the default (255, 255, 255, 255) when the Mesh was created.
Function
Synopsis
vertexcolors = Mesh:hasVertexColors( )
Arguments
None.
Returns
boolean vertexcolors
- True if per-vertex coloring is used, otherwise love.graphics.setColor is used when drawing the Mesh.
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