Debian Codegraph @

clutter/egl/clutter-egl-headers.h

raw
1 /* Clutter.
2 * An OpenGL based 'interactive canvas' library.
3 * Authored By Matthew Allum <[email protected]>
4 * Copyright (C) 2006-2007 OpenedHand
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 *
19 *
20 */
21
22 #ifndef __CLUTTER_EGL_HEADERS_H__
23 #define __CLUTTER_EGL_HEADERS_H__
24
25 /* Clutter relies on Cogl to abstract GLES1/2/OpenGL and GLX/EGL etc
26 * so we simply include the Cogl header to pull in the appropriate EGL
27 * header. */
28
29 #include <cogl/cogl.h>
30
31 /* Since Cogl 1.11.2, the EGL headers are no longer included from
32 * cogl.h when the experimental 2.0 API is requested. Clutter requests
33 * this in its configure script so we need to switch the header we
34 * include in that case. COGL_VERSION_CHECK is also new in 1.11.2 */
35 #ifdef COGL_VERSION_CHECK
36 #if COGL_VERSION_CHECK (1, 11, 2)
37 #include <cogl/cogl-egl.h>
38 #endif
39 #endif
40
41 #endif /* __CLUTTER_EGL_HEADERS_H__ */