4 * An OpenGL based 'interactive canvas' library.
6 * Copyright (C) 2012 Intel Corporation.
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.
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.
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/>.
23 #ifndef __CLUTTER_COGL_COMPAT_H__
24 #define __CLUTTER_COGL_COMPAT_H__
26 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
27 #error "Only <clutter/clutter.h> can be included directly."
32 /* XXX: Some public Clutter apis depend on Cogl types that have been
33 * removed from the Cogl 2.0 experimental api.
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.
39 * NB: we build all clutter internals with COGL_ENABLE_EXPERIMENTAL_2_0_API
43 #ifdef COGL_ENABLE_EXPERIMENTAL_2_0_API
45 /* CoglMaterial has been replaced with CoglPipeline in Cogl 2.0 */
46 typedef struct _CoglMaterial CoglMaterial;
52 #endif /* __CLUTTER_COGL_COMPAT_H__ */