Package: gdk

Function gdk:display-create-gl-context

Lambda List

gdk:display-create-gl-context (display)

Arguments

display -- a gdk:display object

Return Value

The newly created gdk:gl-context object.

Details

Creates a new OpenGL context for the display. The context is disconnected from any particular 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 OpenGL context failed, an error will be set. Before using the returned OpenGL context, you will need to call the gdk:gl-context-make-current or gdk:gl-context-realize functions.

Since 4.6
 

See also

#2024-11-21