|
@@ -13186,6 +13186,30 @@ return {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name = "getMaterial",
|
|
|
|
+ summary = "Get the Material applied to the Mesh.",
|
|
|
|
+ description = "Returns the `Material` applied to the Mesh.",
|
|
|
|
+ key = "Mesh:getMaterial",
|
|
|
|
+ module = "lovr.graphics",
|
|
|
|
+ related = {
|
|
|
|
+ "Pass:setMaterial",
|
|
|
|
+ "Model:getMaterial",
|
|
|
|
+ "lovr.graphics.newMaterial"
|
|
|
|
+ },
|
|
|
|
+ variants = {
|
|
|
|
+ {
|
|
|
|
+ arguments = {},
|
|
|
|
+ returns = {
|
|
|
|
+ {
|
|
|
|
+ name = "material",
|
|
|
|
+ type = "Material",
|
|
|
|
+ description = "The material."
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
{
|
|
{
|
|
name = "getVertexBuffer",
|
|
name = "getVertexBuffer",
|
|
summary = "Get the Buffer backing the vertices of the Mesh.",
|
|
summary = "Get the Buffer backing the vertices of the Mesh.",
|
|
@@ -13392,6 +13416,30 @@ return {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ name = "setMaterial",
|
|
|
|
+ summary = "Set a Material to use when drawing the Mesh.",
|
|
|
|
+ description = "Sets a `Material` to use when drawing the Mesh.",
|
|
|
|
+ key = "Mesh:setMaterial",
|
|
|
|
+ module = "lovr.graphics",
|
|
|
|
+ related = {
|
|
|
|
+ "Pass:setMaterial",
|
|
|
|
+ "Model:getMaterial",
|
|
|
|
+ "lovr.graphics.newMaterial"
|
|
|
|
+ },
|
|
|
|
+ variants = {
|
|
|
|
+ {
|
|
|
|
+ arguments = {
|
|
|
|
+ {
|
|
|
|
+ name = "material",
|
|
|
|
+ type = "Material",
|
|
|
|
+ description = "The material to use."
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ returns = {}
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
{
|
|
{
|
|
name = "setVertices",
|
|
name = "setVertices",
|
|
summary = "Set vertices in the Mesh.",
|
|
summary = "Set vertices in the Mesh.",
|