gstreamer_gl::prelude

Trait GLDisplayExtManual

Source
pub trait GLDisplayExtManual: IsA<GLDisplay> + 'static {
    // Provided methods
    fn handle(&self) -> usize { ... }
    fn ensure_context(
        &self,
        other_context: Option<&impl IsA<GLContext>>,
        context: &mut Option<GLContext>,
    ) -> Result<(), Error> { ... }
}

Provided Methods§

Source

fn handle(&self) -> usize

§Returns

the native handle for the display

Source

fn ensure_context( &self, other_context: Option<&impl IsA<GLContext>>, context: &mut Option<GLContext>, ) -> Result<(), Error>

Ensures that the display has a valid GL context for the current thread. If context already contains a valid context, this does nothing.

§other_context

other GLContext to share resources with.

§context

the resulting GLContext

§Returns

wether context contains a valid context.

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.

Implementors§