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 31 extern "C" { 32 #endif 33 34 #define WL_EGL_PLATFORM 1 35 36 struct wl_egl_window; 37 struct wl_surface; 38 39 struct wl_egl_window * 40 wl_egl_window_create(struct wl_surface *surface, 41 int width, int height); 42 43 void 44 wl_egl_window_destroy(struct wl_egl_window *egl_window); 45 46 void 47 wl_egl_window_resize(struct wl_egl_window *egl_window, 48 int width, int height, 49 int dx, int dy); 50 51 void 52 wl_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