Class Material
A compiled version of Material
[DataSerializerGlobal(typeof(ReferenceSerializer<Material>), null, DataSerializerGenericMode.None, false, false, Profile = "Content")]
[ContentSerializer(typeof(DataContentSerializer<Material>))]
[DataContract]
public class Material
- Inheritance
-
Material
Constructors
Material()
Initializes a new instance of the Material class.
Properties
Descriptor
Gets or sets the descriptor (this field is null at runtime).
Property Value
- Material
Descriptor The descriptor.
Passes
The passes contained in this material (usually one).
Property Value
Methods
New(GraphicsDevice, MaterialDescriptor)
Creates a new material from the specified descriptor.
Parameters
device
GraphicsDevice descriptor
MaterialDescriptor The material descriptor.
Returns
Exceptions
- Argument
Null Exception descriptor
- Invalid
Operation Exception If an error occurs with the material description