Class SMTextureParams
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
SMTextureParams(SMTextureParams)
Copy-construct: a deep copy of other (the C++ copy constructor).
public SMTextureParams(SMTextureParams other)
Parameters
otherSMTextureParams
Properties
Flags
Flags, as in MTXF.
public uint Flags { get; set; }
Property Value
HeightOffset
Height offset added to the scaled _h value (default 1.0).
public float HeightOffset { get; set; }
Property Value
HeightScale
Height scale: _h values map to [0, height_scale) as the blend height (default 0.0).
public float HeightScale { get; set; }
Property Value
Padding
Padding.
public uint Padding { get; set; }
Property Value
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
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(SMTextureParams?, SMTextureParams?)
public static bool operator ==(SMTextureParams? l, SMTextureParams? r)
Parameters
Returns
operator !=(SMTextureParams?, SMTextureParams?)
public static bool operator !=(SMTextureParams? l, SMTextureParams? r)