Debian Codegraph @

clutter/egl/clutter-stage-eglnative.c

raw
1 /*
2 * Clutter.
3 *
4 * An OpenGL based 'interactive canvas' library.
5 *
6 * Copyright (C) 2010 Intel Corporation.
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
20
21 * Authors:
22 * Adel Gadllah
23 */
24
25 #ifdef HAVE_CONFIG_H
26 #include "config.h"
27 #endif
28
29 #include <glib.h>
30
31 #include "clutter-stage-window.h"
32 #include "clutter-stage-private.h"
33 #include "clutter-stage-eglnative.h"
34 #include <cogl/cogl.h>
35
36 static ClutterStageWindowIface *clutter_stage_window_parent_iface = NULL;
37
38 static void clutter_stage_window_iface_init (ClutterStageWindowIface *iface);
39
40 #define clutter_stage_eglnative_get_type _clutter_stage_eglnative_get_type
41
42 G_DEFINE_TYPE_WITH_CODE (ClutterStageEglNative,
43 clutter_stage_eglnative,
44 CLUTTER_TYPE_STAGE_COGL,
45 G_IMPLEMENT_INTERFACE (CLUTTER_TYPE_STAGE_WINDOW,
46 clutter_stage_window_iface_init));
47
48 static gboolean
49 clutter_stage_eglnative_can_clip_redraws (ClutterStageWindow *stage_window)
50 {
51 return TRUE;
52 }
53
54 static void
55 clutter_stage_eglnative_class_init (ClutterStageEglNativeClass *klass)
56 {
57 }
58
59 static void
60 clutter_stage_eglnative_init (ClutterStageEglNative *stage_eglnative)
61 {
62 }
63
64 static void
65 clutter_stage_window_iface_init (ClutterStageWindowIface *iface)
66 {
67 clutter_stage_window_parent_iface = g_type_interface_peek_parent (iface);
68
69 iface->can_clip_redraws = clutter_stage_eglnative_can_clip_redraws;
70 }