Implement accessors for the color bits in a framebuffer
authorEmmanuele Bassi <ebassi@linux.intel.com>
Mon, 26 Apr 2010 17:08:45 +0000 (18:08 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 5 May 2010 11:25:16 +0000 (12:25 +0100)
commit9ebd5fd935e6695acfbebfe479e56c20b0a92a15
tree771353f9c2c3e08aa2a0293f6710860eb5b11b2f
parentd8e1bd989c0ccd95a6c0cea20d567da9a3bc6d79
Implement accessors for the color bits in a framebuffer

Instead of using cogl_get_bitmasks() to query the GL machinery for the
size of the color bits, we should store the values inside the
CoglFramebuffer object and query them the first time we set the framebuffer
as the current one.

Currently, cogl_get_bitmasks() is re-implemented in terms of
cogl_framebuffer_get_*_bits(). As soon as we are able to expose the
CoglOnscreen framebuffer object in the public API we'll be able to
deprecate cogl_get_bitmasks() altogether.

http://bugzilla.openedhand.com/show_bug.cgi?id=2094
clutter/cogl/cogl/cogl-context.c
clutter/cogl/cogl/cogl-framebuffer-private.h
clutter/cogl/cogl/cogl-framebuffer.c
clutter/cogl/cogl/cogl.c
clutter/cogl/cogl/cogl.h