Tao.FreeGlut SDK Documentation

Glut.glutPostWindowOverlayRedisplay Method 

Marks the overlay of the specified window as needing to be redisplayed.

[Visual Basic]
Public Shared Sub glutPostWindowOverlayRedisplay( _
   ByVal win As Integer _
)
[C#]
public static void glutPostWindowOverlayRedisplay(
   int win
);

Parameters

win
Identifier of GLUT window for which to post the overlay redisplay.

Remarks

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.

See Also

Glut Class | Tao.FreeGlut Namespace | glutEstablishOverlay | glutHideOverlay | glutLayerGet | glutMainLoop | glutPostOverlayRedisplay | glutPostRedisplay