GLContext.setRequiredVersion

Sets the major and minor version of OpenGL to request.

Setting major and minor to zero will use the default values.

The gdk.GLContext must not be realized or made current prior to calling this function.

class GLContext
void
setRequiredVersion
(
int major
,
int minor
)

Parameters

major int

the major version to request

minor int

the minor version to request

Meta

Since

3.16