create_gl_context


Description:

[ Version ( since = "3.16" ) ]
public GLContext create_gl_context () throws Error

Creates a new GLContext matching the framebuffer format to the visual of the Window.

The context is disconnected from any particular window or surface.

If the creation of the GLContext failed, throws will be set.

Before using the returned GLContext, you will need to call make_current or realize.

Parameters:

this

a Window

Returns:

the newly created GLContext, or null on error