wayland: Add OpenGL support

This uses EGL to implement GdkGLContext for wayland.
This commit is contained in:
Alexander Larsson
2014-10-09 11:06:48 +02:00
committed by Matthias Clasen
parent 6717242d26
commit 7eae4985e8
10 changed files with 624 additions and 10 deletions

View File

@ -26,6 +26,7 @@
#include <stdint.h>
#include <wayland-client.h>
#include <wayland-cursor.h>
#include <wayland-egl.h>
#include <gdk/wayland/gtk-shell-client-protocol.h>
#include <gdk/wayland/xdg-shell-client-protocol.h>
@ -37,6 +38,8 @@
#include "gdkdisplayprivate.h"
#include <epoxy/egl.h>
G_BEGIN_DECLS
typedef struct _GdkWaylandSelection GdkWaylandSelection;
@ -76,6 +79,16 @@ struct _GdkWaylandDisplay
struct xkb_context *xkb_context;
GdkWaylandSelection *selection;
/* egl info */
EGLDisplay egl_display;
int egl_major_version;
int egl_minor_version;
guint have_egl : 1;
guint have_egl_khr_create_context : 1;
guint have_egl_buffer_age : 1;
guint have_egl_swap_buffers_with_damage : 1;
};
struct _GdkWaylandDisplayClass