create_gl_context


Description:

public GLContext create_gl_context () throws Error

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

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

Returns:

the newly created GLContext, or null on error