setOpenGLContextVersion

Set OpenGL context version to use. This has no effect on non-OpenGL windows. You may want to change context version if you want to use advanced shaders or other modern OpenGL techinques. This setting doesn't affect already created windows. You may use version 2.1 as your default, which should be supported by any box since 2006, so seems to be a reasonable choice.

Note that by default version is set to 0, which forces SimpleDisplay to use old context creation code without any version specified. This is the safest way to init OpenGL, but it may not give you access to advanced features.

See available OpenGL versions here: https://en.wikipedia.org/wiki/OpenGL

void
setOpenGLContextVersion
()
(
ubyte hi
,
ubyte lo
)

Meta