{{newin (日本語)|[[0.10.0 (日本語)|0.10.0]]|100|type=関数}}
Gets the vertex format that the Mesh was [[love.graphics.newMesh|created]] with.

== 関数 ==
=== 概要 ===
<source lang="lua">
format = Mesh:getVertexFormat( )
</source>
=== 引数 ===
なし。
=== 返値 ===
{{param (日本語)|table|format|The vertex format of the Mesh, which is a table containing tables for each vertex attribute the Mesh was created with, in the form of <code>{attribute, ...}</code>.}}
{{subparam|table|attribute|A table containing the attribute's name, it's [[AttributeDataType|data type]], and the number of components in the attribute, in the form of <code>{name, datatype, components}</code>.}}
{{subparam|table|...|Additional vertex attributes in the Mesh.}}

== 注釈 ==
If a Mesh wasn't [[love.graphics.newMesh|created]] with a custom vertex format, it will have the following vertex format:
<source lang="lua">
defaultformat = {
    {"VertexPosition", "float", 2}, -- The x,y position of each vertex.
    {"VertexTexCoord", "float", 2}, -- The u,v texture coordinates of each vertex.
    {"VertexColor", "byte", 4} -- The r,g,b,a color of each vertex.
}
</source>
== 関連 ==
* [[parent::Mesh (日本語)]]
* [[love.graphics.newMesh (日本語)]]
* [[AttributeDataType (日本語)]]
* [[Mesh:setVertex (日本語)]]
* [[Mesh:setVertexAttribute (日本語)]]
* [[love.graphics.draw (日本語)]]
[[Category:Functions (日本語)]]
{{#set:Description=Gets the vertex format that the Mesh was [[love.graphics.newMesh|created]] with.}}
== そのほかの言語 ==
{{i18n (日本語)|Mesh:getVertexFormat}}