GLFWWindow
class GLFWWindow @JvmOverloads constructor(title: String, width: Int, height: Int, gl2: Boolean = false, resizeable: Boolean = true, decorated: Boolean = true) : Window
reference implementation of a PolyUI window using GLFW, which registers an OpenGL context, supporting all PolyUI API features.
For it to work across on macOS, forwards compatibility is enabled. This means that only Core profiles are supported, so only use GL classes with the C suffix.
On macOS, this class is equipped with a workaround to allow it to run without -XstartOnMainThread. It can be disabled with -Dpolyui.glfwnomacfix, or setting enableMacOSFix.
Parameters
gl2
if true, the window will be registered with OpenGL 2.0C+, else, it will use OpenGL 3.2C+.