wayland-egl-core.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. #ifndef WAYLAND_EGL_CORE_H
  27. #define WAYLAND_EGL_CORE_H
  28. #ifdef __cplusplus
  29. extern "C" {
  30. #endif
  31. #define WL_EGL_PLATFORM 1
  32. struct wl_egl_window;
  33. struct wl_surface;
  34. struct wl_egl_window *
  35. wl_egl_window_create(struct wl_surface *surface,
  36. int width, int height);
  37. void
  38. wl_egl_window_destroy(struct wl_egl_window *egl_window);
  39. void
  40. wl_egl_window_resize(struct wl_egl_window *egl_window,
  41. int width, int height,
  42. int dx, int dy);
  43. void
  44. wl_egl_window_get_attached_size(struct wl_egl_window *egl_window,
  45. int *width, int *height);
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif