 |
GrayWaitNSwitches |
Function (Macro) |
Waits for a given number of plane switches.
GrayWaitNSwitches waits for wait plane switches to happen before
returning. If wait is 1, the function waits until the next plane
switch occurs, so you can synchronize your program to the grayscale plane
switches. Since the switches happen periodically, you can be pretty sure that
no switch will occur too soon after you call this function. Using
GrayGetSwitchCount and
GraySetSwitchCount, you can also
choose exactly after which plane the function returns.
See also: GrayGetSwitchCount