Trait gstreamer_gl::prelude::GLDisplayExtManual

source ·
pub trait GLDisplayExtManual: Sealed + 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.

Object Safety§

This trait is not object safe.

Implementors§