VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.6.5/glxdrawable.h@ 78293

Last change on this file since 78293 was 49174, checked in by vboxsync, 11 years ago

Additions/x11: replace header files for X.Org Server 1.6.0 with those for version 1.6.5 due to an ABI bump in-between.

  • Property svn:eol-style set to native
File size: 2.5 KB
Line 
1#ifdef HAVE_DIX_CONFIG_H
2#include <dix-config.h>
3#endif
4
5#ifndef _GLX_drawable_h_
6#define _GLX_drawable_h_
7
8/*
9 * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
10 * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice including the dates of first publication and
20 * either this permission notice or a reference to
21 * http://oss.sgi.com/projects/FreeB/
22 * shall be included in all copies or substantial portions of the Software.
23 *
24 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
28 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
29 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
31 *
32 * Except as contained in this notice, the name of Silicon Graphics, Inc.
33 * shall not be used in advertising or otherwise to promote the sale, use or
34 * other dealings in this Software without prior written authorization from
35 * Silicon Graphics, Inc.
36 */
37
38#include <damage.h>
39
40/* We just need to avoid clashing with DRAWABLE_{WINDOW,PIXMAP} */
41enum {
42 GLX_DRAWABLE_WINDOW,
43 GLX_DRAWABLE_PIXMAP,
44 GLX_DRAWABLE_PBUFFER
45};
46
47struct __GLXdrawable {
48 void (*destroy)(__GLXdrawable *private);
49 GLboolean (*swapBuffers)(__GLXdrawable *);
50 void (*copySubBuffer)(__GLXdrawable *drawable,
51 int x, int y, int w, int h);
52 void (*waitX)(__GLXdrawable *);
53 void (*waitGL)(__GLXdrawable *);
54
55 DrawablePtr pDraw;
56 XID drawId;
57
58 /*
59 ** Either GLX_DRAWABLE_PIXMAP, GLX_DRAWABLE_WINDOW or
60 ** GLX_DRAWABLE_PBUFFER.
61 */
62 int type;
63
64 /*
65 ** Configuration of the visual to which this drawable was created.
66 */
67 __GLXconfig *config;
68
69 GLenum target;
70 GLenum format;
71
72 /*
73 ** Event mask
74 */
75 unsigned long eventMask;
76};
77
78#endif /* !__GLX_drawable_h__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette