Table of Contents

Class UvMapEntry

Namespace
WoWLib.Formats.ADT.Chunks
Assembly
WoWLib.dll

An MH2O liquid UV coordinate (case 1/3): x and y, each divided by 8 for shaders.

public class UvMapEntry : IDisposable
Inheritance
UvMapEntry
Implements
Inherited Members

Constructors

UvMapEntry()

public UvMapEntry()

UvMapEntry(ushort, ushort)

public UvMapEntry(ushort x, ushort y)

Parameters

x ushort
y ushort

UvMapEntry(UvMapEntry)

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

public UvMapEntry(UvMapEntry other)

Parameters

other UvMapEntry

Properties

X

The u coordinate (divided by 8 in shaders).

public ushort X { get; set; }

Property Value

ushort

Y

The v coordinate.

public ushort Y { get; set; }

Property Value

ushort

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 ==(UvMapEntry?, UvMapEntry?)

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

Parameters

l UvMapEntry
r UvMapEntry

Returns

bool

operator !=(UvMapEntry?, UvMapEntry?)

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

Parameters

l UvMapEntry
r UvMapEntry

Returns

bool