cogl: deprecate cogl_draw_buffer API and replace with a cogl_framebuffer API
authorRobert Bragg <robert@linux.intel.com>
Thu, 26 Nov 2009 19:06:35 +0000 (19:06 +0000)
committerRobert Bragg <robert@linux.intel.com>
Thu, 26 Nov 2009 19:33:14 +0000 (19:33 +0000)
commit439f8c62b0e2651b9afeb08cb5166ed9e7f49521
tree57bc183b55be57be7fd1c74eecd64eae07532de7
parentb598210e011f6711848e649217ac7a35770bfe8e
cogl: deprecate cogl_draw_buffer API and replace with a cogl_framebuffer API

cogl_push_draw_buffer, cogl_set_draw_buffer and cogl_pop_draw_buffer are now
deprecated and new code should use the new cogl_framebuffer_* API instead.

Code that previously did:
    cogl_push_draw_buffer ();
    cogl_set_draw_buffer (COGL_OFFSCREEN_BUFFER, buffer);
    /* draw */
    cogl_pop_draw_buffer ();
should now be re-written as:
    cogl_push_framebuffer (buffer);
    /* draw */
    cogl_pop_framebuffer ();

As can be seen from the example above the rename has been used as an
opportunity to remove the redundant target argument from
cogl_set_draw_buffer; it now only takes one call to redirect to an offscreen
buffer, and finally the term framebuffer may be a bit more familiar to
anyone coming from an OpenGL background.
21 files changed:
README
clutter/clutter-texture.c
clutter/cogl/cogl/Makefile.am
clutter/cogl/cogl/cogl-clip-stack.c
clutter/cogl/cogl/cogl-context.c
clutter/cogl/cogl/cogl-context.h
clutter/cogl/cogl/cogl-framebuffer-private.h [moved from clutter/cogl/cogl/cogl-draw-buffer-private.h with 56% similarity]
clutter/cogl/cogl/cogl-framebuffer.c [moved from clutter/cogl/cogl/cogl-draw-buffer.c with 55% similarity]
clutter/cogl/cogl/cogl-journal.c
clutter/cogl/cogl/cogl-matrix-stack.c
clutter/cogl/cogl/cogl-primitives.c
clutter/cogl/cogl/cogl-texture.c
clutter/cogl/cogl/cogl-vertex-buffer.c
clutter/cogl/cogl/cogl.c
clutter/cogl/cogl/cogl.h
doc/reference/cogl/cogl-sections.txt
tests/conform/test-backface-culling.c
tests/conform/test-cogl-offscreen.c
tests/conform/test-cogl-readpixels.c
tests/conform/test-cogl-viewport.c
tests/interactive/test-cogl-offscreen.c