VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.0.1/dri.h@ 68495

Last change on this file since 68495 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: 4.4 KB
Line 
1/* $XFree86: xc/programs/Xserver/GL/dri/dri.h,v 1.18 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/* Prototypes for AppleDRI functions */
37
38#ifndef _DRI_H_
39#define _DRI_H_
40
41#include <X11/Xdefs.h>
42#include "scrnintstr.h"
43#define _APPLEDRI_SERVER_
44#include "appledri.h"
45#include "Xplugin.h"
46
47typedef void (*ClipNotifyPtr)( WindowPtr, int, int );
48
49
50/*
51 * These functions can be wrapped by the DRI. Each of these have
52 * generic default funcs (initialized in DRICreateInfoRec) and can be
53 * overridden by the driver in its [driver]DRIScreenInit function.
54 */
55typedef struct {
56 WindowExposuresProcPtr WindowExposures;
57 CopyWindowProcPtr CopyWindow;
58 ValidateTreeProcPtr ValidateTree;
59 PostValidateTreeProcPtr PostValidateTree;
60 ClipNotifyProcPtr ClipNotify;
61} DRIWrappedFuncsRec, *DRIWrappedFuncsPtr;
62
63typedef struct {
64 xp_surface_id id;
65 int kind;
66} DRISurfaceNotifyArg;
67
68extern Bool DRIScreenInit(ScreenPtr pScreen);
69
70extern Bool DRIFinishScreenInit(ScreenPtr pScreen);
71
72extern void DRICloseScreen(ScreenPtr pScreen);
73
74extern Bool DRIExtensionInit(void);
75
76extern void DRIReset(void);
77
78extern Bool DRIQueryDirectRenderingCapable(ScreenPtr pScreen,
79 Bool *isCapable);
80
81extern Bool DRIAuthConnection(ScreenPtr pScreen, unsigned int magic);
82
83extern Bool DRICreateSurface(ScreenPtr pScreen,
84 Drawable id,
85 DrawablePtr pDrawable,
86 xp_client_id client_id,
87 xp_surface_id *surface_id,
88 unsigned int key[2],
89 void (*notify) (void *arg, void *data),
90 void *notify_data);
91
92extern Bool DRIDestroySurface(ScreenPtr pScreen,
93 Drawable id,
94 DrawablePtr pDrawable,
95 void (*notify) (void *arg, void *data),
96 void *notify_data);
97
98extern Bool DRIDrawablePrivDelete(pointer pResource,
99 XID id);
100
101extern DRIWrappedFuncsRec *DRIGetWrappedFuncs(ScreenPtr pScreen);
102
103extern void DRICopyWindow(WindowPtr pWin,
104 DDXPointRec ptOldOrg,
105 RegionPtr prgnSrc);
106
107extern int DRIValidateTree(WindowPtr pParent,
108 WindowPtr pChild,
109 VTKind kind);
110
111extern void DRIPostValidateTree(WindowPtr pParent,
112 WindowPtr pChild,
113 VTKind kind);
114
115extern void DRIClipNotify(WindowPtr pWin,
116 int dx,
117 int dy);
118
119extern void DRIWindowExposures(WindowPtr pWin,
120 RegionPtr prgn,
121 RegionPtr bsreg);
122
123extern void DRISurfaceNotify (xp_surface_id id, int kind);
124
125extern void DRIQueryVersion(int *majorVersion,
126 int *minorVersion,
127 int *patchVersion);
128
129#endif
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