"Initial commit to Gerrit"
[profile/ivi/cogl.git] / cogl / cogl-defines.h.win32
1 /*
2  * Cogl
3  *
4  * An object oriented GL/GLES Abstraction/Utility Layer
5  *
6  * Copyright (C) 2007,2008,2009,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  *
22  */
23  
24 #if !defined(__COGL_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
25 #error "Only <cogl/cogl.h> can be included directly."
26 #endif
27
28 #ifndef __COGL_DEFINES_H__
29 #define __COGL_DEFINES_H__
30
31 #include <glib.h>
32 #include <windows.h>
33 #include <GL/GL.h>
34 #include <GL/glext.h>
35
36 G_BEGIN_DECLS
37
38 #define COGL_HAS_GLIB_SUPPORT 1
39 #define COGL_HAS_WGL_SUPPORT 1
40 #define COGL_HAS_WIN32_SUPPORT 1
41 #define COGL_HAS_GL 1
42 #define CLUTTER_COGL_HAS_GL 1
43
44 #ifdef COGL_HAS_EGL_SUPPORT
45 #ifdef COGL_HAS_GLES1
46 #include <GLES/gl.h>
47 #include <GLES/egl.h>
48 #else
49 #include <EGL/egl.h>
50 #define NativeDisplayType EGLNativeDisplayType
51 #define NativeWindowType EGLNativeWindowType
52 #endif
53 #endif
54
55 #ifndef GL_OES_EGL_image
56 #define GLeglImageOES void *
57 #endif
58
59 #define COGL_SYSDEF_POLLIN 1
60 #define COGL_SYSDEF_POLLPRI 2
61 #define COGL_SYSDEF_POLLOUT 4
62 #define COGL_SYSDEF_POLLERR 8
63 #define COGL_SYSDEF_POLLHUP 16
64 #define COGL_SYSDEF_POLLNVAL 32
65
66 G_END_DECLS
67
68 #endif