Surface.createGlContext

gdk.glcontext.GLContext createGlContext()

Creates a new gdk.glcontext.GLContext for the gdk.surface.Surface.

The context is disconnected from any particular surface or surface. 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