glHandleSetContext

fnbool glHandleSetContext(gst.element.Element element, gst.context.Context context, out gstgl.gldisplay.GLDisplay display, out gstgl.glcontext.GLContext otherContext)

Helper function for implementing #GstElementClass.set_context() in OpenGL capable elements.

Retrieve's the #GstGLDisplay or #GstGLContext in context and places the result in display or other_context respectively.

Parameters

elementa #GstElement
contexta #GstContext
displaylocation of a #GstGLDisplay
otherContextlocation of a #GstGLContext

Returns

whether the display or other_context could be set successfully