Table of Contents

Class M2Material

Namespace
WoWLib.Formats.M2.Root.Record
Assembly
WoWLib.dll

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

other M2Material

M2Material(MaterialFlags, ushort)

public M2Material(MaterialFlags flags, ushort blendingMode)

Parameters

flags MaterialFlags
blendingMode ushort

Properties

BlendingMode

M2BLEND blending mode (see M2/Rendering).

public ushort BlendingMode { get; set; }

Property Value

ushort

Flags

See MaterialFlags.

public MaterialFlags Flags { get; set; }

Property Value

MaterialFlags

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

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(M2Material?, M2Material?)

public static bool operator ==(M2Material? l, M2Material? r)

Parameters

l M2Material
r M2Material

Returns

bool

operator !=(M2Material?, M2Material?)

public static bool operator !=(M2Material? l, M2Material? r)

Parameters

l M2Material
r M2Material

Returns

bool