Class M2Material
An M2 material: render flags (see MaterialFlags) and the blending mode (see M2/Rendering M2BLEND).
public class M2Material : IDisposable
- Inheritance
-
M2Material
- Implements
- Inherited Members
Constructors
M2Material()
public M2Material()
M2Material(M2Material)
Copy-construct: a deep copy of other (the C++ copy constructor).
public M2Material(M2Material other)
Parameters
otherM2Material
M2Material(MaterialFlags, ushort)
public M2Material(MaterialFlags flags, ushort blendingMode)
Parameters
flagsMaterialFlagsblendingModeushort
Properties
BlendingMode
M2BLEND blending mode (see M2/Rendering).
public ushort BlendingMode { get; set; }
Property Value
Flags
See MaterialFlags.
public MaterialFlags Flags { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(M2Material?, M2Material?)
public static bool operator ==(M2Material? l, M2Material? r)
Parameters
lM2MaterialrM2Material
Returns
operator !=(M2Material?, M2Material?)
public static bool operator !=(M2Material? l, M2Material? r)
Parameters
lM2MaterialrM2Material