Surface.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.

class Surface
createGlContext
()

Return Value

Type: gdk.glcontext.GLContext

the newly created gdk.glcontext.GLContext