Hide menu
Loading...
Searching...
No Matches
cadex.Materials.ColorHash Class Reference

Hasher for color objects. More...

Inherits global.SystemIDisposable.

Public Member Functions

 ColorHash (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
 ColorHash ()
 Constructor.
 
 ColorHash (float thePrecision)
 Constructor.
 
uint Apply (cadex.Materials.Color theValue)
 

Protected Member Functions

virtual void Dispose (bool disposing)
 

Detailed Description

Hasher for color objects.

Constructor & Destructor Documentation

◆ ColorHash() [1/2]

cadex.Materials.ColorHash.ColorHash ( )
inline

Constructor.

The hash calculation will occur with a default rounding of 1e-4f for the color component.

◆ ColorHash() [2/2]

cadex.Materials.ColorHash.ColorHash ( float thePrecision)
inline

Constructor.

The hash calculation will occur with a rounding of thePrecision for the color component.