mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00:00
![Robert Bragg](/assets/img/avatar_default.png)
Instead of having to extend cogl_is_buffer with new buffer types manually this now adds a new COGL_BUFFER_DEFINE macro to be used instead of COGL_OBJECT_DEFINE for CoglBuffer subclasses. This macro will automatically register the new type with ctx->buffer_types which will iterated by cogl_is_buffer. This is the same coding pattern used for CoglTexture.