1/*
2 * Copyright © 2011 Kristian Høgsberg
3 * Copyright © 2011 Benjamin Franzke
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining
6 * a copy of this software and associated documentation files (the
7 * "Software"), to deal in the Software without restriction, including
8 * without limitation the rights to use, copy, modify, merge, publish,
9 * distribute, sublicense, and/or sell copies of the Software, and to
10 * permit persons to whom the Software is furnished to do so, subject to
11 * the following conditions:
12 *
13 * The above copyright notice and this permission notice (including the
14 * next paragraph) shall be included in all copies or substantial
15 * portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
21 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
22 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE.
25 */
26
27#ifndef WAYLAND_EGL_CORE_H
28#define WAYLAND_EGL_CORE_H
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#define WL_EGL_PLATFORM 1
35
36struct wl_egl_window;
37struct wl_surface;
38
39struct wl_egl_window *
40wl_egl_window_create(struct wl_surface *surface,
41 int width, int height);
42
43void
44wl_egl_window_destroy(struct wl_egl_window *egl_window);
45
46void
47wl_egl_window_resize(struct wl_egl_window *egl_window,
48 int width, int height,
49 int dx, int dy);
50
51void
52wl_egl_window_get_attached_size(struct wl_egl_window *egl_window,
53 int *width, int *height);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif
60

source code of include/wayland-egl-core.h