Struct wayland_egl::WlEglSurface [−][src]
pub struct WlEglSurface { /* fields omitted */ }
Expand description
EGL surface
This object is a simple wrapper around a WlSurface
to add the EGL
capabilities. Just use the ptr
method once this object is created
to get the window pointer your OpenGL library is needing to initialize the
EGL context (you’ll most likely need the display ptr as well, that you can
get via the ptr
method of the Proxy
trait on the WlDisplay
object).
Implementations
Create an EGL surface from a wayland surface
Create an EGL surface from a raw pointer to a wayland surface
Safety
The provided pointer must be a valid wl_surface
pointer from libwayland-client
.
Resize the EGL surface
The two first arguments (width, height)
are the new size of
the surface, the two others (dx, dy)
represent the displacement
of the top-left corner of the surface. It allows you to control the
direction of the resizing if necessary.