Window.createGlContext

Creates a new gdk.GLContext matching the framebuffer format to the visual of the gdk.Window The context is disconnected from any particular window or surface.

If the creation of the gdk.GLContext failed, error will be set.

Before using the returned gdk.GLContext, you will need to call gdk_gl_context_make_current() or gdk_gl_context_realize().

class Window
createGlContext
()

Return Value

Type: GLContext

the newly created gdk.GLContext, or NULL on error

Throws

GException on failure.

Meta

Since

3.16