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...
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)
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. |
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. |
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. |
In addition to texture references, opaque data values are stored in the OpaqueData property of the base class.
System.Object
Microsoft.Xna.Framework.Content.Pipeline.ContentItem
Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AlphaTestMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.BasicMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.DualTextureMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.EffectMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.EnvironmentMapMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.SkinnedMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.ContentItem
Microsoft.Xna.Framework.Content.Pipeline.Graphics.MaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.AlphaTestMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.BasicMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.DualTextureMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.EffectMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.EnvironmentMapMaterialContent
Microsoft.Xna.Framework.Content.Pipeline.Graphics.SkinnedMaterialContent
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows DirectX Desktop
Linux Desktop