.TH xcb_dbe_swap_buffers 3 "libxcb 1.17.0" "X Version 11" "XCB Requests" .ad l .SH NAME xcb_dbe_swap_buffers \- Swaps front and back buffers .SH SYNOPSIS .hy 0 .B #include .SS Request function .HP xcb_void_cookie_t \fBxcb_dbe_swap_buffers\fP(xcb_connection_t\ *\fIconn\fP, uint32_t\ \fIn_actions\fP, const xcb_dbe_swap_info_t\ *\fIactions\fP); .br .hy 1 .SH REQUEST ARGUMENTS .IP \fIconn\fP 1i The XCB connection to X11. .IP \fIn_actions\fP 1i Number of swap actions in \fIactions\fP. .IP \fIactions\fP 1i List of windows on which to swap buffers. .SH DESCRIPTION Swaps the front and back buffers on the specified windows. The front and back buffers retain their ids, so that the window id continues to refer to the front buffer, while the back buffer id created by this extension continues to refer to the back buffer. Back buffer contents is moved to the front buffer. Back buffer contents after the operation depends on the given swap action. The optimal swap action depends on how each frame is rendered. For example, if the buffer is cleared and fully overwritten on every frame, the "untouched" action, which throws away the buffer contents, would provide the best performance. To eliminate visual artifacts, the swap will occure during the monitor VSync, if the X server supports detecting it. .SH RETURN VALUE Returns an \fIxcb_void_cookie_t\fP. Errors (if any) have to be handled in the event loop. If you want to handle errors directly with \fIxcb_request_check\fP instead, use \fIxcb_dbe_swap_buffers_checked\fP. See \fBxcb-requests(3)\fP for details. .SH ERRORS This request does never generate any errors. .SH SEE ALSO .BR xcb-requests (3) .SH AUTHOR Generated from dbe.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.