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

class Display
createGlContext
()

Return Value

Type: gdk.glcontext.GLContext

the newly created gdk.glcontext.GLContext