Path: blob/master/thirdparty/linuxbsd_headers/wayland/wayland-egl-core.h
9898 views
/*1* Copyright © 2011 Kristian Høgsberg2* Copyright © 2011 Benjamin Franzke3*4* Permission is hereby granted, free of charge, to any person obtaining5* a copy of this software and associated documentation files (the6* "Software"), to deal in the Software without restriction, including7* without limitation the rights to use, copy, modify, merge, publish,8* distribute, sublicense, and/or sell copies of the Software, and to9* permit persons to whom the Software is furnished to do so, subject to10* the following conditions:11*12* The above copyright notice and this permission notice (including the13* next paragraph) shall be included in all copies or substantial14* portions of the Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,17* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF18* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND19* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS20* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN21* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN22* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE23* SOFTWARE.24*/2526#ifndef WAYLAND_EGL_CORE_H27#define WAYLAND_EGL_CORE_H2829#ifdef __cplusplus30extern "C" {31#endif3233#define WL_EGL_PLATFORM 13435struct wl_egl_window;36struct wl_surface;3738struct wl_egl_window *39wl_egl_window_create(struct wl_surface *surface,40int width, int height);4142void43wl_egl_window_destroy(struct wl_egl_window *egl_window);4445void46wl_egl_window_resize(struct wl_egl_window *egl_window,47int width, int height,48int dx, int dy);4950void51wl_egl_window_get_attached_size(struct wl_egl_window *egl_window,52int *width, int *height);5354#ifdef __cplusplus55}56#endif5758#endif596061