GLContext.setAllowedApis

Sets the allowed APIs. When gdk.glcontext.GLContext.realize is called, only the allowed APIs will be tried. If you set this to 0, realizing will always fail.

If you set it on a realized context, the property will not have any effect. It is only relevant during gdk.glcontext.GLContext.realize.

By default, all APIs are allowed.

class GLContext
void
setAllowedApis

Parameters

apis gdk.types.GLAPI

the allowed APIs