Difference between revisions of "Mesh:getVertexCount"

m
(Geometry:getVertexCount -> Mesh:getVertexCount)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function}}
 
{{newin|[[0.9.0]]|090|type=function}}
Returns the total number of vertices in the geometry.
+
Gets the total number of vertices in the Mesh.
  
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
num = Geometry:getVertexCount( )
+
count = Mesh:getVertexCount( )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
 
None.
 
None.
 
=== Returns ===
 
=== Returns ===
{{param|number|num|The total number of vertices in this geometry.}}
+
{{param|number|count|The total number of vertices in the mesh.}}
 
== See Also ==
 
== See Also ==
* [[parent::Geometry]]
+
* [[parent::Mesh]]
 +
* [[Mesh:getVertex]]
 +
* [[Mesh:setVertex]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Returns the total number of vertices in the geometry.}}
+
{{#set:Description=Gets the total number of vertices in the Mesh.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|Geometry:getVertexCount}}
+
{{i18n|Mesh:getVertexCount}}

Latest revision as of 16:07, 8 October 2013

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Gets the total number of vertices in the Mesh.

Function

Synopsis

count = Mesh:getVertexCount( )

Arguments

None.

Returns

number count
The total number of vertices in the mesh.

See Also

Other Languages