Difference between revisions of "Mesh:hasVertexColors"

(Geometry:hasVertexColors -> Mesh:hasVertexColors)
(Added oldin)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
 +
{{oldin|[[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]].)
 
Gets whether per-vertex colors are used instead of the constant color when drawing the Mesh (constant color being [[love.graphics.setColor]].)
  

Revision as of 19:12, 20 December 2015

Available since LÖVE 0.9.0
This function is not supported in earlier versions.
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