Difference between revisions of "Mesh:setVertexColors"
m (moved Geometry:setVertexColors to Mesh:setVertexColors) |
(Geometry:setVertexColors -> Mesh:setVertexColors) |
||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | Sets | + | Sets 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"> | ||
− | + | Mesh:setVertexColors( on ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
− | {{param|boolean|on|True to use per-vertex coloring.}} | + | {{param|boolean|on|True to use per-vertex coloring, otherwise [[love.graphics.setColor]] is used when drawing.}} |
=== Returns === | === Returns === | ||
Nothing. | Nothing. | ||
== See Also == | == See Also == | ||
− | * [[parent:: | + | * [[parent::Mesh]] |
− | * [[ | + | * [[Mesh:hasVertexColors]] |
− | + | * [[love.graphics.newMesh]] | |
− | * [[love.graphics. | ||
− | |||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Sets | + | {{#set:Description=Sets whether per-vertex colors are used instead of the constant color when drawing the Mesh.}} |
== Other Languages == | == Other Languages == | ||
− | {{i18n| | + | {{i18n|Mesh:setVertexColors}} |
Revision as of 23:54, 9 October 2013
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Sets 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
Mesh:setVertexColors( on )
Arguments
boolean on
- True to use per-vertex coloring, otherwise love.graphics.setColor is used when drawing.
Returns
Nothing.
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