summaryrefslogtreecommitdiff
path: root/clutter/clutter-stage-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2011-03-10 22:05:03 +0000
committerRobert Bragg <robert@linux.intel.com>2011-04-11 15:28:53 +0100
commitc739cb2809c5b29c33d504142ce10b42c238e7d4 (patch)
treee68f5fcd0f184ad58b7402c4032d3e4935063e2f /clutter/clutter-stage-private.h
parent997ea0fdee2f72b26c4805ccc40079becc9fc1f2 (diff)
downloadclutter-c739cb2809c5b29c33d504142ce10b42c238e7d4.tar.gz
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.
Diffstat (limited to 'clutter/clutter-stage-private.h')
-rw-r--r--clutter/clutter-stage-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clutter/clutter-stage-private.h b/clutter/clutter-stage-private.h
index 79a22f3d3..7e7b395d4 100644
--- a/clutter/clutter-stage-private.h
+++ b/clutter/clutter-stage-private.h
@@ -27,6 +27,8 @@
#include <clutter/clutter-input-device.h>
#include <clutter/clutter-private.h>
+#include <cogl/cogl.h>
+
G_BEGIN_DECLS
typedef struct _ClutterStageQueueRedrawEntry ClutterStageQueueRedrawEntry;
@@ -92,6 +94,8 @@ void _clutter_stage_set_motion_events_enabled (ClutterStage *stage,
gboolean enabled);
gboolean _clutter_stage_get_motion_events_enabled (ClutterStage *stage);
+CoglFramebuffer *_clutter_stage_get_active_framebuffer (ClutterStage *stage);
+
G_END_DECLS
#endif /* __CLUTTER_STAGE_PRIVATE_H__ */