1 .\" Copyright (c) 1995 Hewlett-Packard Company
3 .\" Permission is hereby granted, free of charge, to any person obtaining a
4 .\" copy of this software and associated documentation files (the "Software"),
5 .\" to deal in the Software without restriction, including without limitation
6 .\" the rights to use, copy, modify, merge, publish, distribute, sublicense,
7 .\" and/or sell copies of the Software, and to permit persons to whom the
8 .\" Software furnished to do so, subject to the following conditions:
10 .\" The above copyright notice and this permission notice shall be included in
11 .\" all copies or substantial portions of the Software.
13 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16 .\" HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
17 .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
18 .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 .\" Except as contained in this notice, the name of the Hewlett-Packard Company shall not
22 .\" be used in advertising or otherwise to promote the sale, use or other
23 .\" dealing in this Software without prior written authorization from the
24 .\" Hewlett-Packard Company.
26 .TH XdbeSwapBuffers __libmansuffix__ __xorgversion__ "X FUNCTIONS"
28 XdbeSwapBuffers - swaps front and back DBE buffers.
30 \&#include <X11/extensions/Xdbe.h>
32 Status XdbeSwapBuffers(
34 XdbeSwapInfo *swap_info,
37 This function swaps the front and back buffers for a list of windows. The
40 specifies how many windows are to have their buffers
41 swapped; it is the number of elements in the
45 specifies the information needed per window to do the swap.
49 structure has the following fields:
52 XdbeSwapAction swap_action
55 specifies the window for which to swap buffers.
57 specifies the swap action to use for this
61 determines what will happen to the new back buffer of the
63 it is paired with in the list in addition to making the old back buffer
64 become visible. The defined actions are as follows:
67 The contents of the new back buffer become undefined. This may be the most
68 efficient action since it allows the implementation to discard the contents of
69 the buffer if it needs to.
71 The unobscured region of the new back buffer will be tiled with the
72 window background. The background action allows devices to use a fast clear
73 capability during a swap.
75 The unobscured region of the new back buffer will be unmodified by the swap.
77 The unobscured region of the new back buffer will be the contents of the old
81 A non-double-buffered window was specified or a window was specified twice.
83 An invalid window was specified.
85 An invalid swap action was specified.
88 .I XdbeAllocateBackBufferName(),
90 .I XdbeDeallocateBackBufferName(),
92 .I XdbeFreeVisualInfo(),
93 .I XdbeGetBackBufferAttributes(),
94 .I XdbeGetVisualInfo(),
95 .I XdbeQueryExtension().