mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
54dc10f890
The offscreen is given through the ::back-buffer property, the ClutterStageView will set up the the CoglPipeline used to render it back to the "onscreen" framebuffer. The pipeline can be altered through the setup_pipeline() vfunc, so ClutterStageView implementations can alter the default behavior of blitting from offscreen to onscreen with no transformations. All getters of "the framebuffer" that were expecting to get an onscreen have been updated to call the right clutter_stage_view_get_onscreen() function. https://bugzilla.gnome.org/show_bug.cgi?id=745079
74 lines
2.8 KiB
C
74 lines
2.8 KiB
C
/*
|
|
* Copyright (C) 2016 Red Hat Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef __CLUTTER_STAGE_VIEW_H__
|
|
#define __CLUTTER_STAGE_VIEW_H__
|
|
|
|
#include <cairo.h>
|
|
#include <glib-object.h>
|
|
#include <cogl/cogl.h>
|
|
|
|
#include "clutter-macros.h"
|
|
|
|
#define CLUTTER_TYPE_STAGE_VIEW (clutter_stage_view_get_type ())
|
|
CLUTTER_AVAILABLE_IN_MUTTER
|
|
G_DECLARE_DERIVABLE_TYPE (ClutterStageView, clutter_stage_view,
|
|
CLUTTER, STAGE_VIEW,
|
|
GObject)
|
|
|
|
struct _ClutterStageViewClass
|
|
{
|
|
GObjectClass parent_class;
|
|
|
|
void (* setup_offscreen_blit_pipeline) (ClutterStageView *view,
|
|
CoglPipeline *pipeline);
|
|
|
|
void (* get_offscreen_transformation_matrix) (ClutterStageView *view,
|
|
CoglMatrix *matrix);
|
|
};
|
|
|
|
CLUTTER_AVAILABLE_IN_MUTTER
|
|
void clutter_stage_view_get_layout (ClutterStageView *view,
|
|
cairo_rectangle_int_t *rect);
|
|
|
|
CLUTTER_AVAILABLE_IN_MUTTER
|
|
CoglFramebuffer *clutter_stage_view_get_framebuffer (ClutterStageView *view);
|
|
CLUTTER_AVAILABLE_IN_MUTTER
|
|
CoglFramebuffer *clutter_stage_view_get_onscreen (ClutterStageView *view);
|
|
CLUTTER_AVAILABLE_IN_MUTTER
|
|
void clutter_stage_view_invalidate_offscreen_blit_pipeline (ClutterStageView *view);
|
|
|
|
CLUTTER_AVAILABLE_IN_MUTTER
|
|
void clutter_stage_view_transform_to_onscreen (ClutterStageView *view,
|
|
gfloat *x,
|
|
gfloat *y);
|
|
|
|
void clutter_stage_view_blit_offscreen (ClutterStageView *view,
|
|
const cairo_rectangle_int_t *clip);
|
|
|
|
gboolean clutter_stage_view_is_dirty_viewport (ClutterStageView *view);
|
|
|
|
void clutter_stage_view_set_dirty_viewport (ClutterStageView *view,
|
|
gboolean dirty);
|
|
|
|
gboolean clutter_stage_view_is_dirty_projection (ClutterStageView *view);
|
|
|
|
void clutter_stage_view_set_dirty_projection (ClutterStageView *view,
|
|
gboolean dirty);
|
|
|
|
#endif /* __CLUTTER_STAGE_VIEW_H__ */
|