Table of Contents

Class CImVector

Namespace
WoWLib.Formats.Common
Assembly
WoWLib.dll

A color stored as b, g, r, a bytes — the client's immediate-mode vertex color layout (WMO MOCV, doodad colors).

public class CImVector : IDisposable
Inheritance
CImVector
Implements
Inherited Members

Constructors

CImVector()

public CImVector()

CImVector(byte, byte, byte, byte)

public CImVector(byte b, byte g, byte r, byte a)

Parameters

b byte
g byte
r byte
a byte

CImVector(CImVector)

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

public CImVector(CImVector other)

Parameters

other CImVector

Properties

A

The alpha component.

public byte A { get; set; }

Property Value

byte

B

The blue component.

public byte B { get; set; }

Property Value

byte

G

The green component.

public byte G { get; set; }

Property Value

byte

R

The red component.

public byte R { get; set; }

Property Value

byte

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

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

Parameters

l CImVector
r CImVector

Returns

bool

operator !=(CImVector?, CImVector?)

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

Parameters

l CImVector
r CImVector

Returns

bool