Release Clutter 1.11.4 (snapshot)
[profile/ivi/clutter.git] / clutter / clutter-cogl-compat.h
1 /*
2  * Clutter.
3  *
4  * An OpenGL based 'interactive canvas' library.
5  *
6  * Copyright (C) 2012  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  */
22
23 #ifndef __CLUTTER_COGL_COMPAT_H__
24 #define __CLUTTER_COGL_COMPAT_H__
25
26 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
27 #error "Only <clutter/clutter.h> can be included directly."
28 #endif
29
30 G_BEGIN_DECLS
31
32 /* XXX: Some public Clutter apis depend on Cogl types that have been
33  * removed from the Cogl 2.0 experimental api.
34  *
35  * If somone has opted to use the Cogl 2.0 experimental api by
36  * defining COGL_ENABLE_EXPERIMENTAL_2_0_API then we need to define
37  * some place holder typdefs for compatability.
38  *
39  * NB: we build all clutter internals with COGL_ENABLE_EXPERIMENTAL_2_0_API
40  * defined.
41  */
42
43 #ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
44
45 /* CoglMaterial has been replaced with CoglPipeline in Cogl 2.0 */
46 typedef struct _CoglMaterial CoglMaterial;
47
48 #endif
49
50 G_END_DECLS
51
52 #endif /* __CLUTTER_COGL_COMPAT_H__ */