Home | All Classes | Grouped Classes | Index | Search

CL_Display::flip

Flip back buffer to front, making changes visible on screen.

	void flip(
		int interval = -1);

Parameters:

interval
Specifies the minimum number of video frames that are displayed before a buffer swap will occur.

Detailed description:

The parameter interval specifies the minimum number of video frames that are displayed before a buffer swap will occur.

A video frame period is the time required by the monitor to display a full frame of video data. In the case of an interlaced monitor, this is typically the time required to display both the even and odd fields of a frame of video data. An interval set to a value of 2 means that the color buffers will be swapped at most every other video frame.

If interval is set to a value of 0, buffer swaps are not synchronized to a video frame. The interval value is silently clamped to the maximum implementation-dependent value supported before being stored.

If interval is set to a value of -1 (the default), then it will use the buffer swap used for previous flip. If its the first flip, it will use the system default, which per default is 1.

See also:

CL_Display



Questions or comments, write to the ClanLib mailing list.