|  |  |  | Cogl Reference Manual |  | 
|---|---|---|---|---|
| Top | Description | ||||
CoglHandle cogl_material_ref (CoglHandle material); void cogl_material_unref (CoglHandle material); const GList * cogl_material_get_layers (CoglMaterial *material);
CoglHandle          cogl_material_ref                   (CoglHandle material);
cogl_material_ref has been deprecated since version 1.2 and should not be used in newly-written code. Use cogl_object_ref() instead
Increment the reference count for a CoglMaterial.
| 
 | a CoglMaterial object. | 
| Returns : | the material. | 
Since 1.0
void                cogl_material_unref                 (CoglHandle material);
cogl_material_unref has been deprecated since version 1.2 and should not be used in newly-written code. Use cogl_object_unref() instead
Decrement the reference count for a CoglMaterial.
| 
 | a CoglMaterial object. | 
Since 1.0
const GList *       cogl_material_get_layers            (CoglMaterial *material);
cogl_material_get_layers has been deprecated since version 1.16 and should not be used in newly-written code. Use cogl_pipeline_get_layers() instead
This function lets you access a material's internal list of layers for iteration.
| 
 | A CoglMaterial object | 
| Returns : | A list of CoglMaterialLayer's that can be passed to the cogl_material_layer_* functions. The list is owned by Cogl and it should not be modified or freed. [element-type CoglMaterialLayer][transfer none] |