set_use_es


Description:

[ Version ( since = "3.22" ) ]
public void set_use_es (int use_es)

Requests that GDK create a OpenGL ES context instead of an OpenGL one, if the platform and windowing system allows it.

The this 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 this is realized.

You should check the return value of get_use_es after calling realize to decide whether to use the OpenGL or OpenGL ES API, extensions, or shaders.

Parameters:

this

a GLContext:

use_es

whether the context should use OpenGL ES instead of OpenGL, or -1 to allow auto-detection




2022 vala-language.org