Table of Contents

Class M2TextureTransform

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

One texture UV transform animation. Abstract over the client version; construct a concrete version with M2TextureTransform.ForVersion / for_version.

public class M2TextureTransform : IDisposable
Inheritance
M2TextureTransform
Implements
Derived
Inherited Members

Constructors

M2TextureTransform()

public M2TextureTransform()

M2TextureTransform(M2TextureTransform)

Copy-construct: a deep copy of other (the C++ copy constructor).

public M2TextureTransform(M2TextureTransform other)

Parameters

other M2TextureTransform

Properties

Rotation

UV rotation keyframes, pivoting at the texture center.

public M2TrackC4Quaternion Rotation { get; set; }

Property Value

M2TrackC4Quaternion

Scaling

UV scaling keyframes.

public M2TrackC3Vector Scaling { get; set; }

Property Value

M2TrackC3Vector

Translation

UV translation keyframes.

public M2TrackC3Vector Translation { get; set; }

Property Value

M2TrackC3Vector

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.

ForVersion(ClientVersion)

A fresh M2TextureTransform for an exact client version — the only axis that can name a Classic client, whose files follow the engine its build was cut on rather than its 1.15 / 4.4 version number.

public static M2TextureTransform ForVersion(ClientVersion version)

Parameters

version ClientVersion

Returns

M2TextureTransform

ForVersion(Expansion)

A fresh M2TextureTransform for the given era, as the family base — the dynamic twin of the typed Era factories.

public static M2TextureTransform ForVersion(Expansion era)

Parameters

era Expansion

Returns

M2TextureTransform

GetHashCode()

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

public override int GetHashCode()

Returns

int

Operators

operator ==(M2TextureTransform?, M2TextureTransform?)

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

Parameters

l M2TextureTransform
r M2TextureTransform

Returns

bool

operator !=(M2TextureTransform?, M2TextureTransform?)

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

Parameters

l M2TextureTransform
r M2TextureTransform

Returns

bool