Table of Contents

Class SMTextureParams

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

Height-blend parameters for a tileset texture (MTXP, MoP+): the same flags as MTXF plus the _h texture's height scale and offset. Scale 0.0 / offset 1.0 means no _h texture is loaded.

public class SMTextureParams : IDisposable
Inheritance
SMTextureParams
Implements
Inherited Members

Constructors

SMTextureParams()

public SMTextureParams()

SMTextureParams(uint, float, float, uint)

public SMTextureParams(uint flags, float heightScale, float heightOffset, uint padding)

Parameters

flags uint
heightScale float
heightOffset float
padding uint

SMTextureParams(SMTextureParams)

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

public SMTextureParams(SMTextureParams other)

Parameters

other SMTextureParams

Properties

Flags

Flags, as in MTXF.

public uint Flags { get; set; }

Property Value

uint

HeightOffset

Height offset added to the scaled _h value (default 1.0).

public float HeightOffset { get; set; }

Property Value

float

HeightScale

Height scale: _h values map to [0, height_scale) as the blend height (default 0.0).

public float HeightScale { get; set; }

Property Value

float

Padding

Padding.

public uint Padding { 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 ==(SMTextureParams?, SMTextureParams?)

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

Parameters

l SMTextureParams
r SMTextureParams

Returns

bool

operator !=(SMTextureParams?, SMTextureParams?)

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

Parameters

l SMTextureParams
r SMTextureParams

Returns

bool