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.

class GLQuery
static
int
versionForDisplay
(,
out int major
,
out int minor
)

Parameters

display Display

the GdkDisplay 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 Value

Type: int

FALSE if it fails, TRUE otherwise.

Meta