GLContext.newWrapped

Wraps an existing OpenGL context into a #GstGLContext.

Note: The caller is responsible for ensuring that the OpenGL context represented by handle stays alive while the returned #GstGLContext is active.

context_type must not be gstgl.types.GLPlatform.None or gstgl.types.GLPlatform.Any

available_apis must not be gstgl.types.GLAPI.None or gstgl.types.GLAPI.Any

Parameters

display gstgl.gldisplay.GLDisplay

a #GstGLDisplay

handle size_t

the OpenGL context to wrap

contextType gstgl.types.GLPlatform

a #GstGLPlatform specifying the type of context in handle

availableApis gstgl.types.GLAPI

a #GstGLAPI containing the available OpenGL apis in handle

Return Value

Type: gstgl.glcontext.GLContext

a #GstGLContext wrapping handle