now using MALLOC, CALLOC, FREE, etc macros
[mesa.git] / src / mesa / drivers / x11 / realglx.c
1 /* $Id: realglx.c,v 1.1 1999/08/19 00:55:42 jtg Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 3.1
6 *
7 * Copyright (C) 1999 Brian Paul All Rights Reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
23 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25 */
26
27
28
29
30
31 /*
32 * Real GLX-encoder functions. Called from glxapi.c
33 *
34 * Steven Parker's code for the GLX client API functions should be
35 * put in this file.
36 *
37 * Also, the main API functions in api.c should somehow hook into the
38 * GLX-encoding functions...
39 */
40
41
42
43 #include <X11/Xlib.h>
44 #include <X11/Xutil.h>
45 #include "realglx.h"
46
47
48
49 XVisualInfo *Real_glXChooseVisual( Display *dpy, int screen, int *list )
50 {
51 (void) dpy;
52 (void) screen;
53 (void) list;
54 return 0;
55 }
56
57
58
59 int Real_glXGetConfig( Display *dpy, XVisualInfo *visinfo,
60 int attrib, int *value )
61 {
62 (void) dpy;
63 (void) visinfo;
64 (void) attrib;
65 (void) value;
66 return 0;
67 }
68
69
70
71 GLXContext Real_glXCreateContext( Display *dpy, XVisualInfo *visinfo,
72 GLXContext shareList, Bool direct )
73 {
74 (void) dpy;
75 (void) visinfo;
76 (void) shareList;
77 (void) direct;
78 return 0;
79 }
80
81
82
83 void Real_glXDestroyContext( Display *dpy, GLXContext ctx )
84 {
85 (void) dpy;
86 (void) ctx;
87 }
88
89
90
91 void Real_glXCopyContext( Display *dpy, GLXContext src, GLXContext dst,
92 GLuint mask )
93 {
94 (void) dpy;
95 (void) src;
96 (void) dst;
97 (void) mask;
98 }
99
100
101
102 Bool Real_glXMakeCurrent( Display *dpy, GLXDrawable drawable, GLXContext ctx )
103 {
104 (void) dpy;
105 (void) drawable;
106 (void) ctx;
107 return 0;
108 }
109
110
111
112 GLXContext Real_glXGetCurrentContext( void )
113 {
114 return 0;
115 }
116
117
118
119 GLXDrawable Real_glXGetCurrentDrawable( void )
120 {
121 return 0;
122 }
123
124
125
126 GLXPixmap Real_glXCreateGLXPixmap( Display *dpy, XVisualInfo *visinfo,
127 Pixmap pixmap )
128 {
129 (void) dpy;
130 (void) visinfo;
131 (void) pixmap;
132 return 0;
133 }
134
135
136 void Real_glXDestroyGLXPixmap( Display *dpy, GLXPixmap pixmap )
137 {
138 (void) dpy;
139 (void) pixmap;
140 }
141
142
143
144 Bool Real_glXQueryExtension( Display *dpy, int *errorb, int *event )
145 {
146 (void) dpy;
147 (void) errorb;
148 (void) event;
149 return 0;
150 }
151
152
153
154 Bool Real_glXIsDirect( Display *dpy, GLXContext ctx )
155 {
156 (void) dpy;
157 (void) ctx;
158 return 0;
159 }
160
161
162
163 void Real_glXSwapBuffers( Display *dpy, GLXDrawable drawable )
164 {
165 (void) dpy;
166 (void) drawable;
167 }
168
169
170
171 Bool Real_glXQueryVersion( Display *dpy, int *maj, int *min )
172 {
173 (void) dpy;
174 (void) maj;
175 (void) min;
176 return 0;
177 }
178
179
180
181 void Real_glXUseXFont( Font font, int first, int count, int listBase )
182 {
183 (void) font;
184 (void) first;
185 (void) count;
186 (void) listBase;
187 }
188
189
190 typedef struct {
191 struct {
192 int major_opcode;
193 } codes;
194
195
196
197 } XExtDisplayInfo;
198
199
200 void Real_glXWaitGL( void )
201 {
202 }
203
204
205
206 void Real_glXWaitX( void )
207 {
208 }
209
210
211
212 /* GLX 1.1 and later */
213 const char *Real_glXQueryExtensionsString( Display *dpy, int screen )
214 {
215 (void) dpy;
216 (void) screen;
217 return 0;
218 }
219
220
221
222 /* GLX 1.1 and later */
223 const char *Real_glXQueryServerString( Display *dpy, int screen, int name )
224 {
225 (void) dpy;
226 (void) screen;
227 (void) name;
228 return 0;
229 }
230
231
232
233 /* GLX 1.1 and later */
234 const char *Real_glXGetClientString( Display *dpy, int name )
235 {
236 (void) dpy;
237 (void) name;
238 return 0;
239 }