pub trait EGLGraphicsBackend {
    fn bind_wl_display(&self, display: &Display) -> Result<EGLDisplay>;
}
Expand description

Trait any backend type may implement that allows binding a Display to create an EGLDisplay for EGL-based WlBuffers.

Required Methods§

Binds this EGL context to the given Wayland display.

This will allow clients to utilize EGL to create hardware-accelerated surfaces. The server will need to be able to handle EGL-WlBuffers.

Errors

This might return EglExtensionNotSupported if binding is not supported by the EGL implementation.

This might return OtherEGLDisplayAlreadyBound if called for the same Display multiple times, as only one context may be bound at any given time.

Implementations on Foreign Types§

Implementors§