Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#9 Resolution change callback

open
nobody
Callbacks (2)
5
2005-08-12
2005-06-01
Richard Rauch
No

It might be desirable to add a client callback for
detecting a resolution change for the display.

Dan Torop submitted a freeglut patch that lets the
library pick up resolution changes on WIN32. On
WIN32, we could easily do a callback for that.

The patch to detect the resolution change was made to
OpenGLEAN this morning; as with Dan Torop's original
patch, it is passive (just update the global state).

On X, we may be forced to poll the X server everytime
that we want to know the (current) resolution.

In any case, it would be possible, at the bottom of
glutMainLoopEvent(), to check the resolution and if
it is different, dispatch a client callback.

Discussion

  • Richard Rauch
    Richard Rauch
    2005-08-12

    • summary: Provide a callback for resolution change? --> Resolution change callback