summaryrefslogtreecommitdiff
path: root/include/yagl_wayland_egl.h
blob: 348723f55efb5bb11c6caf8b2f1f614862f42e4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef _YAGL_WAYLAND_EGL_H_
#define _YAGL_WAYLAND_EGL_H_

#include "yagl_export.h"
#include "yagl_types.h"
#include <wayland-egl.h>

struct wl_egl_window
{
    struct wl_surface *surface;

    int width;
    int height;
    int dx;
    int dy;

    int attached_width;
    int attached_height;

    void *user_data;
    void (*resize_callback)(struct wl_egl_window */*egl_window*/,
                            void */*user_data*/);
};

#endif