Release Clutter 1.11.4 (snapshot)
[profile/ivi/clutter.git] / clutter / clutter-flatten-effect.c
1 /*
2  * Clutter.
3  *
4  * An OpenGL based 'interactive canvas' library.
5  *
6  * Copyright (C) 2011  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  *   Neil Roberts <neil@linux.intel.com>
23  */
24
25 /* This is an internal-only effect used to implement the
26    'offscreen-redirect' property of ClutterActor. It doesn't actually
27    need to do anything on top of the ClutterOffscreenEffect class so
28    it only exists because that class is abstract */
29
30 #ifdef HAVE_CONFIG_H
31 #include "config.h"
32 #endif
33
34 #include "clutter-flatten-effect.h"
35 #include "clutter-private.h"
36 #include "clutter-actor-private.h"
37
38 G_DEFINE_TYPE (ClutterFlattenEffect,
39                _clutter_flatten_effect,
40                CLUTTER_TYPE_OFFSCREEN_EFFECT);
41
42 static void
43 _clutter_flatten_effect_class_init (ClutterFlattenEffectClass *klass)
44 {
45 }
46
47 static void
48 _clutter_flatten_effect_init (ClutterFlattenEffect *self)
49 {
50 }
51
52 ClutterEffect *
53 _clutter_flatten_effect_new (void)
54 {
55   return g_object_new (CLUTTER_TYPE_FLATTEN_EFFECT, NULL);
56 }