Display.createGlContext

gdk.glcontext.GLContext createGlContext()

Creates a new [gdk.glcontext.GLContext] for the [gdk.display.Display].

The context is disconnected from any particular surface or surface and cannot be used to draw to any surface. It can only be used to draw to non-surface framebuffers like textures.

If the creation of the [gdk.glcontext.GLContext] failed, error will be set. Before using the returned [gdk.glcontext.GLContext], you will need to call [gdk.glcontext.GLContext.makeCurrent] or [gdk.glcontext.GLContext.realize].

Returns

the newly created [gdk.glcontext.GLContext]

Throws

[ErrorWrap]