From: <joc...@la...> - 2007-11-20 17:17:03
|
Hello, While trying to fix glutFullScreen() for X11, I wonder about what this function should really do. GLUT specification states that “Subsequent glutReshapeWindow and glutPositionWindow requests on the window will disable the full screen status of the window.”, which is not really clear to me. Or maybe I just don't get the point. It seems to me that current window managers (and so applications) handle full screen as follows : - while in full screen state, a window cannot be moved or resized, - when leaving full screen state, the previous window's position and size are restored. I suggest that freeglut behaves the same way. While the window is in full screen state, a call to glutFullScreen() should restore it to normal state. User could possibly call glutGet() to know if the window is in full screen state or not. What do you think about it? And what should glutReshapeWindow() and glutPositionWindow() do when full screen is on : restoring the window to its previous state before processing or do nothing at all? -- Jocelyn Fréchot |