Window.createGlContext

gdk.glcontext.GLContext createGlContext()

Creates a new #GdkGLContext matching the framebuffer format to the visual of the #GdkWindow. The context is disconnected from any particular window or surface.

If the creation of the #GdkGLContext failed, error will be set.

Before using the returned #GdkGLContext, you will need to call [gdk.glcontext.GLContext.makeCurrent] or [gdk.glcontext.GLContext.realize].

Returns

the newly created #GdkGLContext, or

null on error

Throws

[ErrorWrap]