Table of Contents

Class SMTextureColorGrading

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

Color-grading info for a tileset texture (MTCG, Shadowlands+): a start distance pair and the color-grading LUT / ramp FileDataIDs applied to the diffuse texture at the same index.

public class SMTextureColorGrading : IDisposable
Inheritance
SMTextureColorGrading
Implements
Inherited Members

Constructors

SMTextureColorGrading()

public SMTextureColorGrading()

SMTextureColorGrading(uint, uint, uint, uint)

public SMTextureColorGrading(uint startDistance, uint _04, uint colorGradingFdid, uint colorGradingRampFdid)

Parameters

startDistance uint
_04 uint
colorGradingFdid uint
colorGradingRampFdid uint

SMTextureColorGrading(SMTextureColorGrading)

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

public SMTextureColorGrading(SMTextureColorGrading other)

Parameters

other SMTextureColorGrading

Properties

ColorGradingFdid

The color-grading LUT FileDataID.

public uint ColorGradingFdid { get; set; }

Property Value

uint

ColorGradingRampFdid

The color-grading ramp FileDataID.

public uint ColorGradingRampFdid { get; set; }

Property Value

uint

StartDistance

Start distance (the record is used when this or _04 is non-zero).

public uint StartDistance { get; set; }

Property Value

uint

Unknown04

Unknown companion of start_distance.

public uint Unknown04 { get; set; }

Property Value

uint

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

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

Parameters

l SMTextureColorGrading
r SMTextureColorGrading

Returns

bool

operator !=(SMTextureColorGrading?, SMTextureColorGrading?)

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

Parameters

l SMTextureColorGrading
r SMTextureColorGrading

Returns

bool