GL module

gl_get_version

proceduresince 0.31.0Source

The OpenGL version of the current context, as major and minor.

Example↗
major, minor := gl_get_version();
if major < 3 print("OpenGL 3 is required\n");

This one is only checked to compile, not run.

gl_get_version :: () -> (major: s32, minor: s32)

Returns

major: s32
minor: s32

See also