mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
paint-context: Expose push and pop framebuffer
When rendering on-stage, it might be necessary to push offscreen framebuffers to the paint context by external consumers, such as GNOME Shell effects. Expose clutter_paint_context_push|pop_framebuffer(). https://gitlab.gnome.org/GNOME/mutter/merge_requests/955
This commit is contained in:
parent
40205d8f1b
commit
0d1c18a4ce
@ -22,11 +22,6 @@
|
|||||||
|
|
||||||
ClutterPaintContext * clutter_paint_context_new_for_view (ClutterStageView *view);
|
ClutterPaintContext * clutter_paint_context_new_for_view (ClutterStageView *view);
|
||||||
|
|
||||||
void clutter_paint_context_push_framebuffer (ClutterPaintContext *paint_context,
|
|
||||||
CoglFramebuffer *framebuffer);
|
|
||||||
|
|
||||||
void clutter_paint_context_pop_framebuffer (ClutterPaintContext *paint_context);
|
|
||||||
|
|
||||||
gboolean clutter_paint_context_is_drawing_off_stage (ClutterPaintContext *paint_context);
|
gboolean clutter_paint_context_is_drawing_off_stage (ClutterPaintContext *paint_context);
|
||||||
|
|
||||||
CoglFramebuffer * clutter_paint_context_get_base_framebuffer (ClutterPaintContext *paint_context);
|
CoglFramebuffer * clutter_paint_context_get_base_framebuffer (ClutterPaintContext *paint_context);
|
||||||
|
@ -52,4 +52,11 @@ CoglFramebuffer * clutter_paint_context_get_framebuffer (ClutterPaintContext *pa
|
|||||||
CLUTTER_EXPORT
|
CLUTTER_EXPORT
|
||||||
ClutterStageView * clutter_paint_context_get_stage_view (ClutterPaintContext *paint_context);
|
ClutterStageView * clutter_paint_context_get_stage_view (ClutterPaintContext *paint_context);
|
||||||
|
|
||||||
|
CLUTTER_EXPORT
|
||||||
|
void clutter_paint_context_push_framebuffer (ClutterPaintContext *paint_context,
|
||||||
|
CoglFramebuffer *framebuffer);
|
||||||
|
|
||||||
|
CLUTTER_EXPORT
|
||||||
|
void clutter_paint_context_pop_framebuffer (ClutterPaintContext *paint_context);
|
||||||
|
|
||||||
#endif /* CLUTTER_PAINT_CONTEXT_H */
|
#endif /* CLUTTER_PAINT_CONTEXT_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user