+ glutShouldCloseFunc added. if used, the registred function is called and the window will only close if the returned value is !0