Function

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.

Available since:1.0

Parameters

v1 void*
 

A CoglColor.

 The argument can be NULL.
 The data is owned by the caller of the function.
v2 void*
 

A CoglColor.

 The argument can be NULL.
 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE if the two colors are the same.