MeshBuilder.SetMaterial Method (Microsoft.Xna.Framework.Content.Pipeline.Graphics)
Sets the material for the next triangles.
Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
- C#
- VB
- F#
public void SetMaterial( MaterialContent material )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- material
-
Type: Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent
Material for the next triangles.
Sets the material for the triangles being defined next. This material
and the opaque data dictionary, set with SetOpaqueData(OpaqueDataDictionary)
define the GeometryContent object containing the next
triangles. When you set a new material or opaque data dictionary the
triangles you add afterwards will belong to a new
GeometryContent object.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop