"Initial commit to Gerrit"
[profile/ivi/cogl.git] / cogl / cogl-display-private.h
1 /*
2  * Cogl
3  *
4  * An object oriented GL/GLES Abstraction/Utility Layer
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
20  * <http://www.gnu.org/licenses/>.
21  *
22  *
23  */
24
25 #ifndef __COGL_DISPLAY_PRIVATE_H
26 #define __COGL_DISPLAY_PRIVATE_H
27
28 #include "cogl-object-private.h"
29 #include "cogl-display.h"
30 #include "cogl-renderer.h"
31 #include "cogl-onscreen-template.h"
32 #include "cogl-internal.h"
33 #if COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
34 #include <wayland-server.h>
35 #endif
36
37 struct _CoglDisplay
38 {
39   CoglObject _parent;
40
41   gboolean setup;
42   CoglRenderer *renderer;
43   CoglOnscreenTemplate *onscreen_template;
44
45 #ifdef COGL_HAS_WAYLAND_EGL_SERVER_SUPPORT
46   struct wl_display *wayland_compositor_display;
47 #endif
48
49 #ifdef COGL_HAS_EGL_PLATFORM_GDL_SUPPORT
50   gdl_plane_id_t gdl_plane;
51 #endif
52
53   void *winsys;
54 };
55
56 #endif /* __COGL_DISPLAY_PRIVATE_H */