mirror of
https://github.com/brl/mutter.git
synced 2025-01-27 11:59:12 +00:00
Robert Bragg
16c64054b9
material: Adds experimental cogl_material_foreach_layer API
This adds a way to iterate the layer indices of the given material since cogl_material_get_layers has been deprecated. The user provides a callback to be called once for each layer. Because modification of layers in the callback may potentially invalidate any number of the internal CoglMaterialLayer structures and invalidate the material's layer cache this should be more robust than cogl_material_get_layers() which used to return a const GList * pointing directly to internal state.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%