pub trait GLDisplayEGLExt: IsA<GLDisplayEGL> + 'static {
// Provided method
fn set_foreign(&self, foreign: bool) { ... }
}
Expand description
Provided Methods§
Sourcefn set_foreign(&self, foreign: bool)
fn set_foreign(&self, foreign: bool)
Configure whether or not this EGL display is foreign and is managed by an external application/library.
A display marked as foreign will not have display global resources freed when
this display is finalized. As such, any external API using the same
EGLDisplay
must keep the EGLDisplay
alive while GStreamer is using any
EGL or GL resources associated with that EGLDisplay
. The reverse is also
true and a foreign GLDisplayEGL
must not be used after the associated
EGLDisplay
has been destroyed externally with eglTerminate()
.
A non-foreign GLDisplayEGL
will destroy the associated EGLDisplay
on
finalization. This can also be useful when a user would like GStreamer to
assume ownership of the EGLDisplay
after calling e.g.
GLDisplayEGL::with_egl_display()
.
§foreign
whether self
should be marked as containing a foreign
EGLDisplay
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.