stage: adds internal_get_active_framebuffer API
authorRobert Bragg <robert@linux.intel.com>
Thu, 10 Mar 2011 22:05:03 +0000 (22:05 +0000)
committerRobert Bragg <robert@linux.intel.com>
Mon, 11 Apr 2011 14:28:53 +0000 (15:28 +0100)
commitc739cb2809c5b29c33d504142ce10b42c238e7d4
treee68f5fcd0f184ad58b7402c4032d3e4935063e2f
parent997ea0fdee2f72b26c4805ccc40079becc9fc1f2
stage: adds internal_get_active_framebuffer API

This adds an internal _clutter_stage_get_active_framebuffer function
that can be used to get a pointer to the current CoglFramebuffer pointer
that is in use, in association with a given stage.

The "active" infix in the function name is there because we shouldn't
assume that a stage will always correspond to only a single framebuffer
so we aren't getting a pointer to a sole framebuffer, we are getting
a pointer to the framebuffer that is currently in use/being painted.

This API is now used for culling purposes where we need to check if we
are currently painting an actor to a framebuffer that is offscreen, that
doesn't correspond to the stage.
clutter/clutter-actor.c
clutter/clutter-stage-private.h
clutter/clutter-stage-window.c
clutter/clutter-stage-window.h
clutter/clutter-stage.c