Method

CoglColorequal

Declaration [src]

gboolean
cogl_color_equal (
  void* v1,
  void* v2
)

Description [src]

Compares two CoglColors and checks if they are the same.

This function can be passed to g_hash_table_new() as the key_equal_func parameter, when using CoglColors as keys in a GHashTable.

Parameters

v2

Type: CoglColor

A CoglColor.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE if the two colors are the same.