GLContext.requestConfig

Set the OpenGL configuration for this context. The context must not have been created for this function to succeed. Setting a null config has the affect of removing any specific configuration request.

Not all implementations currently support retrieving the config and this function will return FALSE when not supported.

Note that calling this function may cause a subsequent gstgl.glcontext.GLContext.create to fail if config could not be matched with the platform-specific configuration.

Note that the actual config used may be differ from the requested values.

class GLContext
bool
requestConfig

Parameters

glConfig gst.structure.Structure

a configuration structure for configuring the OpenGL context

Return Value

Type: bool

whether gl_config could be successfully set on context