Method

CoglColorcopy

Declaration [src]

CoglColor*
cogl_color_copy (
  const CoglColor* color
)

Description [src]

Creates a copy of color.

Available since:1.0

Return value

Returns: CoglColor
 

A newly-allocated CoglColor. Use cogl_color_free() to free the allocate resources.

 The caller of the method takes ownership of the data, and is responsible for freeing it.