Mercurial > sdl-ios-xcode
comparison src/video/Xext/extensions/xf86dga1.h @ 292:eadc0746dfaf
Added SDL_LockRect() and SDL_UnlockRect()
Incorporated XFree86 extension libraries into the source
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 05 Mar 2002 19:55:32 +0000 |
parents | |
children | 585a7e1285ae |
comparison
equal
deleted
inserted
replaced
291:68a8a8237c09 | 292:eadc0746dfaf |
---|---|
1 /* $XFree86: xc/include/extensions/xf86dga1.h,v 1.2 1999/04/17 07:05:41 dawes Exp $ */ | |
2 /* | |
3 | |
4 Copyright (c) 1995 Jon Tombs | |
5 Copyright (c) 1995 XFree86 Inc | |
6 | |
7 */ | |
8 | |
9 /************************************************************************ | |
10 | |
11 THIS IS THE OLD DGA API AND IS OBSOLETE. PLEASE DO NOT USE IT ANYMORE | |
12 | |
13 ************************************************************************/ | |
14 | |
15 #ifndef _XF86DGA1_H_ | |
16 #define _XF86DGA1_H_ | |
17 | |
18 #include <X11/Xfuncproto.h> | |
19 #include "SDLname.h" | |
20 | |
21 #define X_XF86DGAQueryVersion 0 | |
22 #define X_XF86DGAGetVideoLL 1 | |
23 #define X_XF86DGADirectVideo 2 | |
24 #define X_XF86DGAGetViewPortSize 3 | |
25 #define X_XF86DGASetViewPort 4 | |
26 #define X_XF86DGAGetVidPage 5 | |
27 #define X_XF86DGASetVidPage 6 | |
28 #define X_XF86DGAInstallColormap 7 | |
29 #define X_XF86DGAQueryDirectVideo 8 | |
30 #define X_XF86DGAViewPortChanged 9 | |
31 | |
32 #define XF86DGADirectPresent 0x0001 | |
33 #define XF86DGADirectGraphics 0x0002 | |
34 #define XF86DGADirectMouse 0x0004 | |
35 #define XF86DGADirectKeyb 0x0008 | |
36 #define XF86DGAHasColormap 0x0100 | |
37 #define XF86DGADirectColormap 0x0200 | |
38 | |
39 | |
40 | |
41 | |
42 #ifndef _XF86DGA_SERVER_ | |
43 | |
44 _XFUNCPROTOBEGIN | |
45 | |
46 Bool SDL_NAME(XF86DGAQueryVersion)( | |
47 #if NeedFunctionPrototypes | |
48 Display* /* dpy */, | |
49 int* /* majorVersion */, | |
50 int* /* minorVersion */ | |
51 #endif | |
52 ); | |
53 | |
54 Bool SDL_NAME(XF86DGAQueryExtension)( | |
55 #if NeedFunctionPrototypes | |
56 Display* /* dpy */, | |
57 int* /* event_base */, | |
58 int* /* error_base */ | |
59 #endif | |
60 ); | |
61 | |
62 Status SDL_NAME(XF86DGAGetVideoLL)( | |
63 #if NeedFunctionPrototypes | |
64 Display* /* dpy */, | |
65 int /* screen */, | |
66 int * /* base addr */, | |
67 int * /* width */, | |
68 int * /* bank_size */, | |
69 int * /* ram_size */ | |
70 #endif | |
71 ); | |
72 | |
73 Status SDL_NAME(XF86DGAGetVideo)( | |
74 #if NeedFunctionPrototypes | |
75 Display* /* dpy */, | |
76 int /* screen */, | |
77 char ** /* base addr */, | |
78 int * /* width */, | |
79 int * /* bank_size */, | |
80 int * /* ram_size */ | |
81 #endif | |
82 ); | |
83 | |
84 Status SDL_NAME(XF86DGADirectVideo)( | |
85 #if NeedFunctionPrototypes | |
86 Display* /* dpy */, | |
87 int /* screen */, | |
88 int /* enable */ | |
89 #endif | |
90 ); | |
91 | |
92 Status SDL_NAME(XF86DGADirectVideoLL)( | |
93 #if NeedFunctionPrototypes | |
94 Display* /* dpy */, | |
95 int /* screen */, | |
96 int /* enable */ | |
97 #endif | |
98 ); | |
99 | |
100 Status SDL_NAME(XF86DGAGetViewPortSize)( | |
101 #if NeedFunctionPrototypes | |
102 Display* /* dpy */, | |
103 int /* screen */, | |
104 int * /* width */, | |
105 int * /* height */ | |
106 #endif | |
107 ); | |
108 | |
109 Status SDL_NAME(XF86DGASetViewPort)( | |
110 #if NeedFunctionPrototypes | |
111 Display* /* dpy */, | |
112 int /* screen */, | |
113 int x /* X */, | |
114 int y /* Y */ | |
115 #endif | |
116 ); | |
117 | |
118 Status SDL_NAME(XF86DGAGetVidPage)( | |
119 #if NeedFunctionPrototypes | |
120 Display* /* dpy */, | |
121 int /* screen */, | |
122 int * /* vid page */ | |
123 #endif | |
124 ); | |
125 | |
126 Status SDL_NAME(XF86DGASetVidPage)( | |
127 #if NeedFunctionPrototypes | |
128 Display* /* dpy */, | |
129 int /* screen */, | |
130 int /* vid page */ | |
131 #endif | |
132 ); | |
133 | |
134 Status SDL_NAME(XF86DGAInstallColormap)( | |
135 #if NeedFunctionPrototypes | |
136 Display* /* dpy */, | |
137 int /* screen */, | |
138 Colormap /*Colormap */ | |
139 #endif | |
140 ); | |
141 | |
142 int SDL_NAME(XF86DGAForkApp)( | |
143 #if NeedFunctionPrototypes | |
144 int screen | |
145 #endif | |
146 ); | |
147 | |
148 Status SDL_NAME(XF86DGAQueryDirectVideo)( | |
149 #if NeedFunctionPrototypes | |
150 Display * /* dpy */, | |
151 int /* screen */, | |
152 int * /* flags */ | |
153 #endif | |
154 ); | |
155 | |
156 Bool SDL_NAME(XF86DGAViewPortChanged)( | |
157 #if NeedFunctionPrototypes | |
158 Display * /* dpy */, | |
159 int /* screen */, | |
160 int /* n */ | |
161 #endif | |
162 ); | |
163 | |
164 | |
165 _XFUNCPROTOEND | |
166 | |
167 #endif /* _XF86DGA_SERVER_ */ | |
168 | |
169 #endif /* _XF86DGA1_H_ */ |