Marks the overlay of the specified window as needing to be redisplayed.
glutPostWindowOverlayRedisplay marks the overlay of specified window as needing to be redisplayed. The next iteration through glutMainLoop, the window's overlay display callback (or simply the display callback if no overlay display callback is registered) will be called to redisplay the window's overlay plane. Multiple calls to glutPostWindowOverlayRedisplay before the next display callback opportunity (or overlay display callback opportunity if one is registered) generate only a single redisplay. glutPostWindowOverlayRedisplay may be called within a window's display or overlay display callback to re-mark that window for redisplay.
Logically, overlay damage notification for a window is treated as a glutPostWindowOverlayRedisplay on the damaged window. Unlike damage reported by the window system, glutPostWindowOverlayRedisplay will not set to true
the overlay's damaged status (returned by Glut.glutLayerGet(Glut.GLUT_OVERLAY_DAMAGED)
.
If the window you want to post an overlay redisplay on is not already current (and you do not require it to be immediately made current), using glutPostWindowOverlayRedisplay is more efficient than calling glutSetWindow to the desired window and then calling glutPostOverlayRedisplay.
Glut Class | Tao.FreeGlut Namespace | glutEstablishOverlay | glutHideOverlay | glutLayerGet | glutMainLoop | glutPostOverlayRedisplay | glutPostRedisplay