primitive: adds immutable ref/unref mechanism
authorRobert Bragg <robert@linux.intel.com>
Tue, 26 Oct 2010 17:57:33 +0000 (18:57 +0100)
committerRobert Bragg <robert@linux.intel.com>
Wed, 3 Nov 2010 18:04:31 +0000 (18:04 +0000)
commit69b1f756d14237c60073f77ee048975a159148cb
tree70f051ec2c5f380344d1e32fa524fd0a02141561
parent2d58d3f1b6b728e3cca6e1bbeabd19fc03de05df
primitive: adds immutable ref/unref mechanism

This adds a way to mark that a primitive is in use so that modifications
will generate a warning. The plan is to use this mechanism when batching
primitives in the journal to warn users that mid-scene modifications of
primitives is not allowed.
clutter/cogl/cogl/cogl-primitive-private.h
clutter/cogl/cogl/cogl-primitive.c