MaterialContent Class (Microsoft.Xna.Framework.Content.Pipeline.Graphics)

Provides methods and properties for maintaining a collection of named texture references.
System.Object
   Microsoft.Xna.Framework.Content.Pipeline.ContentItem
      Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent
      More...

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: MonoGame.Framework.Content.Pipeline (MonoGame.Framework.Content.Pipeline.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public class MaterialContent : ContentItem

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

The MaterialContent type exposes the following members.

  Platforms Name Description
MaterialContent Initializes a new instance of MaterialContent. 
Top
  Platforms Name Description
Identity Gets or sets the identity of the content item. (Inherited from ContentItem.)
Name Gets or sets the name of the content item. (Inherited from ContentItem.)
OpaqueData Gets the opaque data of the content item. (Inherited from ContentItem.)
Textures Gets the texture collection of the material. 
Top
  Platforms Name Description
Clone Helper method to make a copy of a material. 
GetReferenceTypeProperty<T> Gets a reference type from the OpaqueDataDictionary collection. 
GetTexture Gets a value from the Textures collection. 
GetValueTypeProperty<T> Gets a value type from the OpaqueDataDictionary collection. 
SetProperty<T> Sets a value in the contained OpaqueDataDictionary object. If null is passed, the value is removed. 
SetTexture Sets a value in the contained TextureReferenceDictionary object. If null is passed, the value is removed. 
Top
In addition to texture references, opaque data values are stored in the OpaqueData property of the base class.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop