window and glwindow class