GLQuery.versionForDisplay

Returns the version numbers of the OpenGL extension to the window system.

In the X Window System, it returns the GLX version.

In the Microsoft Windows, it returns the Windows version.

struct GLQuery
static
bool
versionForDisplay
(,
out int major
,
out int minor
)

Parameters

display Display

the gdk.Display where the query is sent to.

major int

returns the major version number of the OpenGL extension.

minor int

returns the minor version number of the OpenGL extension.

Return: FALSE if it fails, TRUE otherwise.