Package: gdk

Function gdk:surface-create-gl-context

Lambda List

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

Arguments

surface -- a gdk:surface object

Return Value

The newly created gdk:gl-context object.

Details

Creates a new OpenGL context matching the framebuffer format to the visual of the surface. The context is disconnected from any particular surface.

Before using the returned OpenGL context, you will need to call the gdk:gl-context-make-current or gdk:gl-context-realize function.
 

See also

#2024-11-21