Class TextureComparators
Represents a series of Texture comparison methods.
Inherited Members
Namespace: TriLibCore.Utils
Assembly: TriLibCore.dll
Syntax
public static class TextureComparators
Methods
Equals(ITexture, object)
Checks if Texture is equal object.
Declaration
public static bool Equals(ITexture a, object b)
Parameters
Type | Name | Description |
---|---|---|
ITexture | a | The Texture A. |
object | b | The Texture B. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode(ITexture)
Returns a hash code for the given Texture.
Declaration
public static int GetHashCode(ITexture a)
Parameters
Type | Name | Description |
---|---|---|
ITexture | a | The Texture to get the Hashcode. |
Returns
Type | Description |
---|---|
int | A hash code for the given texture, suitable for use in hashing algorithms and data structures like a hash table. |
TextureEquals(ITexture, ITexture)
Checks if two Textures are equals.
Declaration
public static bool TextureEquals(ITexture a, ITexture b)
Parameters
Type | Name | Description |
---|---|---|
ITexture | a | The Texture A. |
ITexture | b | The Texture B. |
Returns
Type | Description |
---|---|
bool |
|