Adds an internal weak material mechanism
authorRobert Bragg <robert@linux.intel.com>
Thu, 27 May 2010 19:04:49 +0000 (20:04 +0100)
committerRobert Bragg <robert@linux.intel.com>
Tue, 15 Jun 2010 14:26:28 +0000 (15:26 +0100)
commitdc0cb7959885c0eaf43008c0065ed99bf10d5df2
tree514e9a620b27c9b94e90e3399252a6e900a64994
parentb5bd76cde176ef88efd3b4f3107e44f3aff2591a
Adds an internal weak material mechanism

This adds a _cogl_material_weak_copy() function that can be used to
create materials that don't count as strong dependants on their parents.
This means the parent can be modified without worrying about how it will
affect weak materials. The material age of the parent can potentially be
queried to determine if a weak material might need to be re-created.
clutter/cogl/cogl/cogl-material-private.h
clutter/cogl/cogl/cogl-material.c