Table of Contents

Class Poly2

Namespace
WoWLib.Formats.WMO.Group.Chunks
Assembly
WoWLib.dll

Per-triangle material info v2 (MPY2, 10.0+): the MOPY replacement with 16-bit fields for multiple-material support.

public class Poly2 : IDisposable
Inheritance
Poly2
Implements
Inherited Members

Constructors

Poly2()

public Poly2()

Poly2(ushort, ushort)

public Poly2(ushort flags, ushort materialId)

Parameters

flags ushort
materialId ushort

Poly2(Poly2)

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

public Poly2(Poly2 other)

Parameters

other Poly2

Properties

Flags

Triangle flags; PolyFlags bits, plus 0x100 for MOQG ground-type queries.

public ushort Flags { get; set; }

Property Value

ushort

MaterialId

Index into MOMT.

public ushort MaterialId { 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()