VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.1.0/dristruct.h

Last change on this file was 51223, checked in by vboxsync, 11 years ago

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • Property svn:eol-style set to native
File size: 2.8 KB
Line 
1/* $XFree86: xc/programs/Xserver/GL/dri/dristruct.h,v 1.10 2001/03/21 16:21:40 dawes Exp $ */
2/**************************************************************************
3
4Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
5Copyright (c) 2002 Apple Computer, Inc.
6All Rights Reserved.
7
8Permission is hereby granted, free of charge, to any person obtaining a
9copy of this software and associated documentation files (the
10"Software"), to deal in the Software without restriction, including
11without limitation the rights to use, copy, modify, merge, publish,
12distribute, sub license, and/or sell copies of the Software, and to
13permit persons to whom the Software is furnished to do so, subject to
14the following conditions:
15
16The above copyright notice and this permission notice (including the
17next paragraph) shall be included in all copies or substantial portions
18of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
23IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
24ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27
28**************************************************************************/
29
30/*
31 * Authors:
32 * Jens Owen <[email protected]>
33 *
34 */
35
36#ifndef DRI_STRUCT_H
37#define DRI_STRUCT_H
38
39#include "dri.h"
40#include "x-list.h"
41
42#define DRI_MAX_DRAWABLES 256
43
44#define DRI_DRAWABLE_PRIV_FROM_WINDOW(pWin) \
45 ((DRIWindowPrivIndex < 0) ? \
46 NULL : \
47 ((DRIDrawablePrivPtr)((pWin)->devPrivates[DRIWindowPrivIndex].ptr)))
48
49#define DRI_DRAWABLE_PRIV_FROM_PIXMAP(pPix) \
50 ((DRIPixmapPrivIndex < 0) ? \
51 NULL : \
52 ((DRIDrawablePrivPtr)((pPix)->devPrivates[DRIPixmapPrivIndex].ptr)))
53
54typedef struct _DRIDrawablePrivRec
55{
56 xp_surface_id sid;
57 int drawableIndex;
58 DrawablePtr pDraw;
59 ScreenPtr pScreen;
60 int refCount;
61 unsigned int key[2];
62 x_list *notifiers; /* list of (FUN . DATA) */
63} DRIDrawablePrivRec, *DRIDrawablePrivPtr;
64
65#define DRI_SCREEN_PRIV(pScreen) \
66 ((DRIScreenPrivIndex < 0) ? \
67 NULL : \
68 ((DRIScreenPrivPtr)((pScreen)->devPrivates[DRIScreenPrivIndex].ptr)))
69
70#define DRI_SCREEN_PRIV_FROM_INDEX(screenIndex) ((DRIScreenPrivPtr) \
71 (screenInfo.screens[screenIndex]->devPrivates[DRIScreenPrivIndex].ptr))
72
73
74typedef struct _DRIScreenPrivRec
75{
76 Bool directRenderingSupport;
77 int nrWindows;
78 DRIWrappedFuncsRec wrap;
79 DrawablePtr DRIDrawables[DRI_MAX_DRAWABLES];
80} DRIScreenPrivRec, *DRIScreenPrivPtr;
81
82#endif /* DRI_STRUCT_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