From 963a0662b430c00da0e9ee94e41652f326902f92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 28 Sep 2010 10:17:46 -0400 Subject: [PATCH] Add wayland backend This adds a clutter backend for running under the wayland window system. Initial cogl framebuffer integration by Robert Bragg. --- cogl/Makefile.am | 4 ++++ cogl/winsys/cogl-egl.c | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/cogl/Makefile.am b/cogl/Makefile.am index f7fb8b172..d2de76a54 100644 --- a/cogl/Makefile.am +++ b/cogl/Makefile.am @@ -294,6 +294,10 @@ if SUPPORT_EGL_PLATFORM_FRUITY cogl_sources_c += \ $(srcdir)/winsys/cogl-fruity.c endif +if SUPPORT_EGL_PLATFORM_DRM_SURFACELESS +cogl_sources_c += \ + $(srcdir)/winsys/cogl-egl.c +endif if SUPPORT_WIN32 cogl_sources_c += \ $(srcdir)/winsys/cogl-win32.c diff --git a/cogl/winsys/cogl-egl.c b/cogl/winsys/cogl-egl.c index 1849ea27f..bafafc0ac 100644 --- a/cogl/winsys/cogl-egl.c +++ b/cogl/winsys/cogl-egl.c @@ -27,11 +27,15 @@ #include "cogl.h" -#ifdef HAVE_COGL_GLES2 +#ifdef HAVE_STANDALONE_EGL #include -#else /* HAVE_COGL_GLES2 */ +#include +#define NativeDisplayType EGLNativeDisplayType +#define NativeWindowType EGLNativeWindowType +#else #include -#endif /* HAVE_COGL_GLES2 */ +#include +#endif CoglFuncPtr _cogl_winsys_get_proc_address (const char *name)