Add wayland backend

This adds a clutter backend for running under the wayland window system.
Initial cogl framebuffer integration by Robert Bragg.
This commit is contained in:
Kristian Høgsberg 2010-09-28 10:17:46 -04:00 committed by Robert Bragg
parent a80a65ce8f
commit 963a0662b4
2 changed files with 11 additions and 3 deletions

View File

@ -294,6 +294,10 @@ if SUPPORT_EGL_PLATFORM_FRUITY
cogl_sources_c += \ cogl_sources_c += \
$(srcdir)/winsys/cogl-fruity.c $(srcdir)/winsys/cogl-fruity.c
endif endif
if SUPPORT_EGL_PLATFORM_DRM_SURFACELESS
cogl_sources_c += \
$(srcdir)/winsys/cogl-egl.c
endif
if SUPPORT_WIN32 if SUPPORT_WIN32
cogl_sources_c += \ cogl_sources_c += \
$(srcdir)/winsys/cogl-win32.c $(srcdir)/winsys/cogl-win32.c

View File

@ -27,11 +27,15 @@
#include "cogl.h" #include "cogl.h"
#ifdef HAVE_COGL_GLES2 #ifdef HAVE_STANDALONE_EGL
#include <EGL/egl.h> #include <EGL/egl.h>
#else /* HAVE_COGL_GLES2 */ #include <EGL/eglext.h>
#define NativeDisplayType EGLNativeDisplayType
#define NativeWindowType EGLNativeWindowType
#else
#include <GLES/egl.h> #include <GLES/egl.h>
#endif /* HAVE_COGL_GLES2 */ #include <GLES/eglext.h>
#endif
CoglFuncPtr CoglFuncPtr
_cogl_winsys_get_proc_address (const char *name) _cogl_winsys_get_proc_address (const char *name)