#define WL_EGL_EXPORT
#endif
-#include <stdbool.h>
#include <wayland-client.h>
-struct wl_egl_display {
- struct wl_display *display;
-
- struct wl_drm *drm;
- int fd;
- char *device_name;
- bool authenticated;
-
- void (*glFlush)(void);
-};
-
struct wl_egl_window {
struct wl_surface *surface;
struct wl_visual *visual;
};
struct wl_egl_pixmap {
- struct wl_egl_display *display;
- struct wl_visual *visual;
+ struct wl_visual *visual;
struct wl_buffer *buffer;
int width;
-#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
-#include <stdbool.h>
-#include <errno.h>
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-#include <dlfcn.h>
#include <wayland-client.h>
#include "wayland-egl.h"
#include "wayland-egl-priv.h"
-#include "wayland-drm-client-protocol.h"
-#include <xf86drm.h>
WL_EGL_EXPORT void
wl_egl_window_resize(struct wl_egl_window *egl_window,