Package: gdk

Function gdk:gl-context-use-es

Lambda List

gdk:gl-context-use-es (context)

Syntax

(gdk:gl-context-uses-es object) => setting
(setf gdk:gl-context-use-es object) setting)

Arguments

context -- a gdk:gl-context object
setting -- an integer whether the context uses OpenGL instead of OpenGL, or -1 to allow auto-detection

Details

The gdk:gl-context-uses-es function checks whether the context is using an OpenGL or OpenGL ES profile. The gdk:gl-context-uses-es function requests that GDK create an OpenGL ES context instead of an OpenGL one, if the platform and windowing system allows it. The context must not have been realized.

By default, GDK will attempt to automatically detect whether the underlying GL implementation is OpenGL or OpenGL ES once the context is realized.

You should check the return value of the gdk:gl-context-use-es function after calling the gdk:gl-context-realize function to decide whether to use the OpenGL or OpenGL ES API, extensions, or shaders.
 

See also

#2023-8-3