material: Adds _cogl_material_pre_paint_for_layer
authorRobert Bragg <robert@linux.intel.com>
Wed, 28 Jul 2010 12:59:34 +0000 (13:59 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 26 Oct 2010 11:17:27 +0000 (12:17 +0100)
commit94e06197856c9959580c837985eb114150d402a3
tree3b13acba38f8875d93b550c362d40dae3fdb0500
parent701a69366142f5c2389110daa0426abdb8691f6d
material: Adds _cogl_material_pre_paint_for_layer

This is a counter part for _cogl_material_layer_pre_paint which takes a
layer index instead of a direct CoglMaterialLayer pointer. The aim is to
phase out code that directly iterates the internal layer pointers of a
material since the layer pointers can change if any property of any
layer is changed making direct layer pointers very fragile.
clutter/cogl/cogl/cogl-material-private.h
clutter/cogl/cogl/cogl-material.c