This change allows users to specify the initial window position when they create the window. The advantage over calling Window.SetPos(…) after the window was created is, that the user will not see the window jump upon startup but it will directly spawn where we want it.
The method of marking the window at invisible is the suggested solution that is documented at glsw.CreateWindow(…):
To create the window at a specific position, make it initially invisible using the Visible window hint, set its position and then show it.
This change allows users to specify the initial window position when they create the window. The advantage over calling
Window.SetPos(…)
after the window was created is, that the user will not see the window jump upon startup but it will directly spawn where we want it.The method of marking the window at invisible is the suggested solution that is documented at
glsw.CreateWindow(…)
: