Function gstreamer_gl::functions::gl_handle_set_context
source · pub fn gl_handle_set_context(
element: &impl IsA<Element>,
context: &Context,
) -> (Option<GLDisplay>, Option<GLContext>)
Expand description
Helper function for implementing GstElementClass.set_context()
in
OpenGL capable elements.
Retrieve’s the GLDisplay
or GLContext
in context
and places the
result in display
or other_context
respectively.
§element
§context
§Returns
whether the display
or other_context
could be set successfully
§display
location of a GLDisplay
§other_context
location of a GLContext