GLContext.getVersion

void getVersion(out int major, out int minor) nothrow

Retrieves the OpenGL version of the context.

The context must be realized prior to calling this function.

Parameters

majorreturn location for the major version
minorreturn location for the minor version