GLContext.newWrapped

gstgl.glcontext.GLContext newWrapped(gstgl.gldisplay.GLDisplay display, size_t handle, gstgl.types.GLPlatform contextType, gstgl.types.GLAPI availableApis)

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

displaya #GstGLDisplay
handlethe OpenGL context to wrap
contextTypea #GstGLPlatform specifying the type of context in handle
availableApisa #GstGLAPI containing the available OpenGL apis in handle

Returns

a #GstGLContext wrapping handle