create_gl_context


Description:

public GLContext create_gl_context () throws Error

Creates a new `GdkGLContext` for the `GdkSurface`.

The context is disconnected from any particular surface or surface. If the creation of the `GdkGLContext` failed, throws will be set. Before using the returned `GdkGLContext`, you will need to call [ [email protected]_current] or [[email protected]].

Parameters:

this

a `GdkSurface`

Returns:

the newly created `GdkGLContext`




2022 vala-language.org