get_layers


Description:

public unowned List<MaterialLayer> get_layers ()

This function lets you access a material's internal list of layers for iteration.

Note:

You should avoid using this API if possible since it was only made public by mistake and will be deprecated when we have suitable alternative.

Note:

It's important to understand that the list returned may not remain valid if you modify the material or any of the layers in any way and so you would have to re-get the list in that situation.

Parameters:

this

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 Deprecated: 1.16: Use cogl_pipeline_get_layers instead