5b39b74fe7e0a6c25a6a31f1eeb359894cc0a299
[mesa.git] / src / glx / x11 / indirect.h
1 /* $XFree86: xc/lib/GL/glx/indirect.h,v 1.5 2003/09/28 20:15:03 alanh Exp $ */
2 /**************************************************************************
3
4 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
5 All Rights Reserved.
6
7 Permission is hereby granted, free of charge, to any person obtaining a
8 copy of this software and associated documentation files (the
9 "Software"), to deal in the Software without restriction, including
10 without limitation the rights to use, copy, modify, merge, publish,
11 distribute, sub license, and/or sell copies of the Software, and to
12 permit persons to whom the Software is furnished to do so, subject to
13 the following conditions:
14
15 The above copyright notice and this permission notice (including the
16 next paragraph) shall be included in all copies or substantial portions
17 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
21 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
23 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
27 **************************************************************************/
28
29 /*
30 * Authors:
31 * Kevin E. Martin <kevin@precisioninsight.com>
32 *
33 */
34
35 #if !defined( _INDIRECT_H_ ) || defined( GENERATE_GLX_PROTOCOL_FUNCTIONS )
36
37 # if !defined( _INDIRECT_H_ )
38 # if defined( GENERATE_GLX_PROTOCOL_FUNCTIONS )
39 # error "indirect.h must be included once without GENERATE_GLX_PROTOCOL_FUNCTIONS defined!"
40 # endif
41
42 # define _INDIRECT_H_
43
44 # define glxproto_void(name, rop) \
45 extern void __indirect_gl ## name ( void );
46 # define glxproto_Cv(name, rop, type, count) \
47 extern void __indirect_gl ## name (const type * v);
48 # define glxproto_Cv_transpose(name, rop, type, w) \
49 extern void __indirect_gl ## name (const type * v);
50 # define glxproto_1s(name, rop, type) \
51 extern void __indirect_gl ## name (type v1);
52 # define glxproto_2s(name, rop, type) \
53 extern void __indirect_gl ## name (type v1, type v2);
54 # define glxproto_3s(name, rop, type) \
55 extern void __indirect_gl ## name (type v1, type v2, type v3);
56 # define glxproto_4s(name, rop, type) \
57 extern void __indirect_gl ## name (type v1, type v2, type v3, type v4);
58 # define glxproto_6s(name, rop, type) \
59 void __indirect_gl ## name (type v1, type v2, type v3, type v4, type v5, type v6);
60 # define glxproto_enum1_1s(name, rop, type) \
61 void __indirect_gl ## name (GLenum e, type v1);
62 # define glxproto_enum1_1v(name, rop, type) \
63 void __indirect_gl ## name (GLenum e, const type * v);
64 # define glxproto_enum1_2s(name, rop, type) \
65 void __indirect_gl ## name (GLenum e, type v1, type v2);
66 # define glxproto_enum1_2v(name, rop, type) \
67 void __indirect_gl ## name (GLenum e, const type * v);
68 # define glxproto_enum1_3s(name, rop, type) \
69 void __indirect_gl ## name (GLenum e, type v1, type v2, type v3);
70 # define glxproto_enum1_3v(name, rop, type) \
71 void __indirect_gl ## name (GLenum e, const type * v);
72 # define glxproto_enum1_4s(name, rop, type) \
73 void __indirect_gl ## name (GLenum e, type v1, type v2, type v3, type v4);
74 # define glxproto_enum1_4v(name, rop, type) \
75 void __indirect_gl ## name (GLenum e, const type * v);
76 # define glxproto_enum1_Vv(name, rop, type) \
77 void __indirect_gl ## name (GLenum pname, const type * v);
78 # define glxproto_enum2_1s(name, rop, type) \
79 void __indirect_gl ## name (GLenum target, GLenum pname, type v1);
80 #define glxproto_enum2_Vv(name, rop, type) \
81 void __indirect_gl ## name (GLenum target, GLenum pname, const type * v);
82
83 # endif /* !defined( _INDIRECT_H_ ) */
84
85 #define glxproto_1(name, rop, type) \
86 glxproto_1s(name, rop, type) \
87 glxproto_Cv(name ## v, rop, type, 1)
88
89 #define glxvendr_1(name, rop, type, VEN) \
90 glxproto_1s(name ## VEN, rop, type) \
91 glxproto_Cv(name ## v ## VEN, rop, type, 1)
92
93 #define glxproto_2(name, rop, type) \
94 glxproto_2s(name, rop, type) \
95 glxproto_Cv(name ## v, rop, type, 2)
96
97 #define glxvendr_2(name, rop, type, VEN) \
98 glxproto_2s(name ## VEN, rop, type) \
99 glxproto_Cv(name ## v ## VEN, rop, type, 2)
100
101 #define glxproto_3(name, rop, type) \
102 glxproto_3s(name, rop, type) \
103 glxproto_Cv(name ## v, rop, type, 3)
104
105 #define glxvendr_3(name, rop, type, VEN) \
106 glxproto_3s(name ## VEN, rop, type) \
107 glxproto_Cv(name ## v ## VEN, rop, type, 3)
108
109 #define glxproto_4(name, rop, type) \
110 glxproto_4s(name, rop, type) \
111 glxproto_Cv(name ## v, rop, type, 4)
112
113 #define glxproto_enum1_1(name, rop, type) \
114 glxproto_enum1_1s(name, rop, type) \
115 glxproto_enum1_1v(name ## v, rop, type)
116
117 #define glxvendr_enum1_1(name, rop, type, VEN) \
118 glxproto_enum1_1s(name ## VEN, rop, type) \
119 glxproto_enum1_1v(name ## v ## VEN, rop, type)
120
121 #define glxproto_enum1_2(name, rop, type) \
122 glxproto_enum1_2s(name, rop, type) \
123 glxproto_enum1_2v(name ## v, rop, type)
124
125 #define glxvendr_enum1_2(name, rop, type, VEN) \
126 glxproto_enum1_2s(name ## VEN, rop, type) \
127 glxproto_enum1_2v(name ## v ## VEN, rop, type)
128
129 #define glxproto_enum1_3(name, rop, type) \
130 glxproto_enum1_3s(name, rop, type) \
131 glxproto_enum1_3v(name ## v, rop, type)
132
133 #define glxvendr_enum1_3(name, rop, type, VEN) \
134 glxproto_enum1_3s(name ## VEN, rop, type) \
135 glxproto_enum1_3v(name ## v ## VEN, rop, type)
136
137 #define glxproto_enum1_4(name, rop, type) \
138 glxproto_enum1_4s(name, rop, type) \
139 glxproto_enum1_4v(name ## v, rop, type)
140
141 #define glxvendr_enum1_4(name, rop, type, VEN) \
142 glxproto_enum1_4s(name ## VEN, rop, type) \
143 glxproto_enum1_4v(name ## v ## VEN, rop, type)
144
145 #define glxproto_enum1_V(name, rop, type) \
146 glxproto_enum1_1s(name, rop, type) \
147 glxproto_enum1_Vv(name ## v, rop ## v, type)
148
149 #define glxvendr_enum1_V(name, rop, type, VEN) \
150 glxproto_enum1_1s(name ## VEN, rop ## VEN, type) \
151 glxproto_enum1_Vv(name ## v ## VEN, rop ## v ## VEN, type)
152
153 #define glxproto_enum2_V(name, rop, type) \
154 glxproto_enum2_1s(name, rop, type) \
155 glxproto_enum2_Vv(name ## v, rop ## v, type)
156
157 #define glxvendr_enum2_V(name, rop, type, VEN) \
158 glxproto_enum2_1s(name ## VEN, rop ## VEN, type) \
159 glxproto_enum2_Vv(name ## v ## VEN, rop ## v ## VEN, type)
160
161 glxproto_1s(CallList, X_GLrop_CallList, GLuint)
162 glxproto_1s(ListBase, X_GLrop_ListBase, GLuint)
163 glxproto_1s(Begin, X_GLrop_Begin, GLenum)
164
165 glxproto_3(Color3b, X_GLrop_Color3bv, GLbyte)
166 glxproto_3(Color3s, X_GLrop_Color3sv, GLshort)
167 glxproto_3(Color3i, X_GLrop_Color3iv, GLint)
168 glxproto_3(Color3ub, X_GLrop_Color3ubv, GLubyte)
169 glxproto_3(Color3us, X_GLrop_Color3usv, GLushort)
170 glxproto_3(Color3ui, X_GLrop_Color3uiv, GLuint)
171 glxproto_3(Color3f, X_GLrop_Color3fv, GLfloat)
172 glxproto_3(Color3d, X_GLrop_Color3dv, GLdouble)
173
174 glxproto_4(Color4b, X_GLrop_Color4bv, GLbyte)
175 glxproto_4(Color4s, X_GLrop_Color4sv, GLshort)
176 glxproto_4(Color4i, X_GLrop_Color4iv, GLint)
177 glxproto_4(Color4ub, X_GLrop_Color4ubv, GLubyte)
178 glxproto_4(Color4us, X_GLrop_Color4usv, GLushort)
179 glxproto_4(Color4ui, X_GLrop_Color4uiv, GLuint)
180 glxproto_4(Color4f, X_GLrop_Color4fv, GLfloat)
181 glxproto_4(Color4d, X_GLrop_Color4dv, GLdouble)
182
183 glxvendr_1(FogCoordf, X_GLrop_FogCoordfv, GLfloat, EXT)
184 glxvendr_1(FogCoordd, X_GLrop_FogCoorddv, GLdouble, EXT)
185
186 glxvendr_3(SecondaryColor3b, X_GLrop_SecondaryColor3bv, GLbyte, EXT)
187 glxvendr_3(SecondaryColor3s, X_GLrop_SecondaryColor3sv, GLshort, EXT)
188 glxvendr_3(SecondaryColor3i, X_GLrop_SecondaryColor3iv, GLint, EXT)
189 glxvendr_3(SecondaryColor3ub, X_GLrop_SecondaryColor3ubv, GLubyte, EXT)
190 glxvendr_3(SecondaryColor3us, X_GLrop_SecondaryColor3usv, GLushort, EXT)
191 glxvendr_3(SecondaryColor3ui, X_GLrop_SecondaryColor3uiv, GLuint, EXT)
192 glxvendr_3(SecondaryColor3f, X_GLrop_SecondaryColor3fv, GLfloat, EXT)
193 glxvendr_3(SecondaryColor3d, X_GLrop_SecondaryColor3dv, GLdouble, EXT)
194
195 glxproto_1(EdgeFlag, X_GLrop_EdgeFlagv, GLboolean)
196
197 glxproto_1(Indexd, X_GLrop_Indexdv, GLdouble)
198 glxproto_1(Indexf, X_GLrop_Indexfv, GLfloat)
199 glxproto_1(Indexi, X_GLrop_Indexiv, GLint)
200 glxproto_1(Indexs, X_GLrop_Indexsv, GLshort)
201 glxproto_1(Indexub, X_GLrop_Indexubv, GLubyte)
202
203 glxproto_void(End, X_GLrop_End)
204
205 glxproto_3(Normal3b, X_GLrop_Normal3bv, GLbyte)
206 glxproto_3(Normal3s, X_GLrop_Normal3sv, GLshort)
207 glxproto_3(Normal3i, X_GLrop_Normal3iv, GLint)
208 glxproto_3(Normal3f, X_GLrop_Normal3fv, GLfloat)
209 glxproto_3(Normal3d, X_GLrop_Normal3dv, GLdouble)
210
211 glxproto_2(RasterPos2s, X_GLrop_RasterPos2sv, GLshort)
212 glxproto_2(RasterPos2i, X_GLrop_RasterPos2iv, GLint)
213 glxproto_2(RasterPos2f, X_GLrop_RasterPos2fv, GLfloat)
214 glxproto_2(RasterPos2d, X_GLrop_RasterPos2dv, GLdouble)
215 glxproto_3(RasterPos3s, X_GLrop_RasterPos3sv, GLshort)
216 glxproto_3(RasterPos3i, X_GLrop_RasterPos3iv, GLint)
217 glxproto_3(RasterPos3f, X_GLrop_RasterPos3fv, GLfloat)
218 glxproto_3(RasterPos3d, X_GLrop_RasterPos3dv, GLdouble)
219 glxproto_4(RasterPos4s, X_GLrop_RasterPos4sv, GLshort)
220 glxproto_4(RasterPos4i, X_GLrop_RasterPos4iv, GLint)
221 glxproto_4(RasterPos4f, X_GLrop_RasterPos4fv, GLfloat)
222 glxproto_4(RasterPos4d, X_GLrop_RasterPos4dv, GLdouble)
223
224 glxproto_1(TexCoord1s, X_GLrop_TexCoord1sv, GLshort)
225 glxproto_1(TexCoord1i, X_GLrop_TexCoord1iv, GLint)
226 glxproto_1(TexCoord1f, X_GLrop_TexCoord1fv, GLfloat)
227 glxproto_1(TexCoord1d, X_GLrop_TexCoord1dv, GLdouble)
228 glxproto_2(TexCoord2s, X_GLrop_TexCoord2sv, GLshort)
229 glxproto_2(TexCoord2i, X_GLrop_TexCoord2iv, GLint)
230 glxproto_2(TexCoord2f, X_GLrop_TexCoord2fv, GLfloat)
231 glxproto_2(TexCoord2d, X_GLrop_TexCoord2dv, GLdouble)
232 glxproto_3(TexCoord3s, X_GLrop_TexCoord3sv, GLshort)
233 glxproto_3(TexCoord3i, X_GLrop_TexCoord3iv, GLint)
234 glxproto_3(TexCoord3f, X_GLrop_TexCoord3fv, GLfloat)
235 glxproto_3(TexCoord3d, X_GLrop_TexCoord3dv, GLdouble)
236 glxproto_4(TexCoord4s, X_GLrop_TexCoord4sv, GLshort)
237 glxproto_4(TexCoord4i, X_GLrop_TexCoord4iv, GLint)
238 glxproto_4(TexCoord4f, X_GLrop_TexCoord4fv, GLfloat)
239 glxproto_4(TexCoord4d, X_GLrop_TexCoord4dv, GLdouble)
240
241 glxproto_2(Vertex2s, X_GLrop_Vertex2sv, GLshort)
242 glxproto_2(Vertex2i, X_GLrop_Vertex2iv, GLint)
243 glxproto_2(Vertex2f, X_GLrop_Vertex2fv, GLfloat)
244 glxproto_2(Vertex2d, X_GLrop_Vertex2dv, GLdouble)
245 glxproto_3(Vertex3s, X_GLrop_Vertex3sv, GLshort)
246 glxproto_3(Vertex3i, X_GLrop_Vertex3iv, GLint)
247 glxproto_3(Vertex3f, X_GLrop_Vertex3fv, GLfloat)
248 glxproto_3(Vertex3d, X_GLrop_Vertex3dv, GLdouble)
249 glxproto_4(Vertex4s, X_GLrop_Vertex4sv, GLshort)
250 glxproto_4(Vertex4i, X_GLrop_Vertex4iv, GLint)
251 glxproto_4(Vertex4f, X_GLrop_Vertex4fv, GLfloat)
252 glxproto_4(Vertex4d, X_GLrop_Vertex4dv, GLdouble)
253
254 glxproto_enum1_4v(ClipPlane, X_GLrop_ClipPlane, GLdouble)
255
256 glxproto_2s(ColorMaterial, X_GLrop_ColorMaterial, GLenum)
257
258 glxproto_1s(CullFace, X_GLrop_CullFace, GLenum)
259
260 glxproto_enum1_V(Fogi, X_GLrop_Fogi, GLint)
261 glxproto_enum1_V(Fogf, X_GLrop_Fogf, GLfloat)
262
263 glxproto_1s(FrontFace, X_GLrop_FrontFace, GLenum)
264 glxproto_2s(Hint, X_GLrop_Hint, GLenum)
265
266 glxproto_enum2_V(Lighti, X_GLrop_Lighti, GLint)
267 glxproto_enum2_V(Lightf, X_GLrop_Lightf, GLfloat)
268
269 glxproto_enum1_V(LightModeli, X_GLrop_LightModeli, GLint)
270 glxproto_enum1_V(LightModelf, X_GLrop_LightModelf, GLfloat)
271
272 glxproto_1s(LineWidth, X_GLrop_LineWidth, GLfloat)
273
274 glxproto_enum2_V(Materiali, X_GLrop_Materiali, GLint)
275 glxproto_enum2_V(Materialf, X_GLrop_Materialf, GLfloat)
276
277 glxproto_1s(PointSize, X_GLrop_PointSize, GLfloat)
278
279 glxproto_2s(PolygonMode, X_GLrop_PolygonMode, GLenum)
280
281 glxproto_1s(ShadeModel, X_GLrop_ShadeModel, GLenum)
282
283 glxproto_enum2_V(TexParameteri, X_GLrop_TexParameteri, GLint)
284 glxproto_enum2_V(TexParameterf, X_GLrop_TexParameterf, GLfloat)
285
286 glxproto_enum2_V(TexEnvi, X_GLrop_TexEnvi, GLint)
287 glxproto_enum2_V(TexEnvf, X_GLrop_TexEnvf, GLfloat)
288 glxproto_enum2_V(TexGeni, X_GLrop_TexGeni, GLint)
289 glxproto_enum2_V(TexGenf, X_GLrop_TexGenf, GLfloat)
290 glxproto_enum2_V(TexGend, X_GLrop_TexGend, GLdouble)
291
292 glxproto_void(InitNames, X_GLrop_InitNames)
293 glxproto_1s(LoadName, X_GLrop_LoadName, GLuint)
294 glxproto_1s(PassThrough, X_GLrop_PassThrough, GLfloat)
295 glxproto_void(PopName, X_GLrop_PopName)
296 glxproto_1s(PushName, X_GLrop_PushName, GLuint)
297
298 glxproto_1s(DrawBuffer, X_GLrop_DrawBuffer, GLenum)
299 glxproto_1s(Clear, X_GLrop_Clear, GLbitfield)
300
301 glxproto_4s(ClearAccum, X_GLrop_ClearAccum, GLfloat)
302 glxproto_1s(ClearIndex, X_GLrop_ClearIndex, GLfloat)
303 glxproto_4s(ClearColor, X_GLrop_ClearColor, GLclampf)
304 glxproto_1s(ClearStencil, X_GLrop_ClearStencil, GLint)
305 glxproto_1s(ClearDepth, X_GLrop_ClearDepth, GLclampd)
306
307 glxproto_1s(StencilMask, X_GLrop_StencilMask, GLuint)
308 glxproto_4s(ColorMask, X_GLrop_ColorMask, GLboolean)
309 glxproto_1s(DepthMask, X_GLrop_DepthMask, GLboolean)
310 glxproto_1s(IndexMask, X_GLrop_IndexMask, GLuint)
311
312 glxproto_enum1_1s(Accum, X_GLrop_Accum, GLfloat)
313
314 glxproto_void(PopAttrib, X_GLrop_PopAttrib)
315 glxproto_1s(PushAttrib, X_GLrop_PushAttrib, GLbitfield)
316
317 glxproto_1(EvalCoord1f, X_GLrop_EvalCoord1fv, GLfloat)
318 glxproto_1(EvalCoord1d, X_GLrop_EvalCoord1dv, GLdouble)
319 glxproto_2(EvalCoord2f, X_GLrop_EvalCoord2fv, GLfloat)
320 glxproto_2(EvalCoord2d, X_GLrop_EvalCoord2dv, GLdouble)
321 glxproto_enum1_2s(EvalMesh1, X_GLrop_EvalMesh1, GLint)
322 glxproto_enum1_4s(EvalMesh2, X_GLrop_EvalMesh2, GLint)
323 glxproto_1s(EvalPoint1, X_GLrop_EvalPoint1, GLint)
324 glxproto_2s(EvalPoint2, X_GLrop_EvalPoint2, GLint)
325
326 glxproto_enum1_1s(AlphaFunc, X_GLrop_AlphaFunc, GLclampf)
327
328 glxproto_2s(BlendFunc, X_GLrop_BlendFunc, GLenum)
329 glxproto_4s(BlendFuncSeparate, X_GLrop_BlendFuncSeparate, GLenum)
330
331 glxproto_1s(LogicOp, X_GLrop_LogicOp, GLenum)
332
333 glxproto_3s(StencilOp, X_GLrop_StencilOp, GLenum)
334 glxproto_1s(DepthFunc, X_GLrop_DepthFunc, GLenum)
335
336 glxproto_2s(PixelZoom, X_GLrop_PixelZoom, GLfloat)
337
338 glxproto_enum1_1s(PixelTransferf, X_GLrop_PixelTransferf, GLfloat)
339 glxproto_enum1_1s(PixelTransferi, X_GLrop_PixelTransferi, GLint)
340
341 glxproto_1s(ReadBuffer, X_GLrop_ReadBuffer, GLenum)
342
343 glxproto_2s(DepthRange, X_GLrop_DepthRange, GLclampd)
344
345 glxproto_6s(Frustum, X_GLrop_Frustum, GLdouble)
346
347 glxproto_void(LoadIdentity, X_GLrop_LoadIdentity)
348 glxproto_1s(MatrixMode, X_GLrop_MatrixMode, GLenum)
349 glxproto_Cv(LoadMatrixf, X_GLrop_LoadMatrixf, GLfloat, 16)
350 glxproto_Cv(MultMatrixf, X_GLrop_MultMatrixf, GLfloat, 16)
351 glxproto_Cv(LoadMatrixd, X_GLrop_LoadMatrixd, GLdouble, 16)
352 glxproto_Cv(MultMatrixd, X_GLrop_MultMatrixd, GLdouble, 16)
353 glxproto_Cv_transpose(LoadTransposeMatrixfARB, X_GLrop_LoadMatrixf, GLfloat, 4)
354 glxproto_Cv_transpose(MultTransposeMatrixfARB, X_GLrop_MultMatrixf, GLfloat, 4)
355 glxproto_Cv_transpose(LoadTransposeMatrixdARB, X_GLrop_LoadMatrixd, GLdouble, 4)
356 glxproto_Cv_transpose(MultTransposeMatrixdARB, X_GLrop_MultMatrixd, GLdouble, 4)
357
358 glxproto_6s(Ortho, X_GLrop_Ortho, GLdouble)
359
360 glxproto_void(PushMatrix, X_GLrop_PushMatrix)
361 glxproto_void(PopMatrix, X_GLrop_PopMatrix)
362
363 glxproto_4s(Rotatef, X_GLrop_Rotatef, GLfloat)
364 glxproto_3s(Scalef, X_GLrop_Scalef, GLfloat)
365 glxproto_3s(Translatef, X_GLrop_Translatef, GLfloat)
366 glxproto_4s(Rotated, X_GLrop_Rotated, GLdouble)
367 glxproto_3s(Scaled, X_GLrop_Scaled, GLdouble)
368 glxproto_3s(Translated, X_GLrop_Translated, GLdouble)
369
370 glxproto_2s(PolygonOffset, X_GLrop_PolygonOffset, GLfloat)
371
372 glxproto_enum1_1s(BindTexture, X_GLrop_BindTexture, GLuint)
373
374 glxproto_4s(BlendColor, X_GLrop_BlendColor, GLclampf)
375 glxproto_1s(BlendEquation, X_GLrop_BlendEquation, GLenum)
376
377 glxproto_enum2_Vv(ColorTableParameteriv, X_GLrop_ColorTableParameteriv, GLint)
378 glxproto_enum2_Vv(ColorTableParameterfv, X_GLrop_ColorTableParameterfv, GLfloat)
379
380 glxproto_enum2_V(ConvolutionParameteri, X_GLrop_ConvolutionParameteri, GLint)
381 glxproto_enum2_V(ConvolutionParameterf, X_GLrop_ConvolutionParameterf, GLfloat)
382
383 glxproto_enum2_1s(Minmax, X_GLrop_Minmax, GLboolean)
384
385 glxproto_1s(ResetHistogram, X_GLrop_ResetHistogram, GLenum)
386 glxproto_1s(ResetMinmax, X_GLrop_ResetMinmax, GLenum)
387
388 glxproto_1s( ActiveTextureARB, X_GLrop_ActiveTextureARB, GLenum)
389 glxvendr_enum1_1(MultiTexCoord1s, X_GLrop_MultiTexCoord1svARB, GLshort, ARB)
390 glxvendr_enum1_1(MultiTexCoord1i, X_GLrop_MultiTexCoord1ivARB, GLint, ARB)
391 glxvendr_enum1_1(MultiTexCoord1f, X_GLrop_MultiTexCoord1fvARB, GLfloat, ARB)
392 glxvendr_enum1_1(MultiTexCoord1d, X_GLrop_MultiTexCoord1dvARB, GLdouble, ARB)
393 glxvendr_enum1_2(MultiTexCoord2s, X_GLrop_MultiTexCoord2svARB, GLshort, ARB)
394 glxvendr_enum1_2(MultiTexCoord2i, X_GLrop_MultiTexCoord2ivARB, GLint, ARB)
395 glxvendr_enum1_2(MultiTexCoord2f, X_GLrop_MultiTexCoord2fvARB, GLfloat, ARB)
396 glxvendr_enum1_2(MultiTexCoord2d, X_GLrop_MultiTexCoord2dvARB, GLdouble, ARB)
397 glxvendr_enum1_3(MultiTexCoord3s, X_GLrop_MultiTexCoord3svARB, GLshort, ARB)
398 glxvendr_enum1_3(MultiTexCoord3i, X_GLrop_MultiTexCoord3ivARB, GLint, ARB)
399 glxvendr_enum1_3(MultiTexCoord3f, X_GLrop_MultiTexCoord3fvARB, GLfloat, ARB)
400 glxvendr_enum1_3(MultiTexCoord3d, X_GLrop_MultiTexCoord3dvARB, GLdouble, ARB)
401 glxvendr_enum1_4(MultiTexCoord4s, X_GLrop_MultiTexCoord4svARB, GLshort, ARB)
402 glxvendr_enum1_4(MultiTexCoord4i, X_GLrop_MultiTexCoord4ivARB, GLint, ARB)
403 glxvendr_enum1_4(MultiTexCoord4f, X_GLrop_MultiTexCoord4fvARB, GLfloat, ARB)
404 glxvendr_enum1_4(MultiTexCoord4d, X_GLrop_MultiTexCoord4dvARB, GLdouble, ARB)
405
406 glxvendr_enum1_V(PointParameterf, X_GLrop_PointParameterf, GLfloat, ARB)
407 glxproto_enum1_V(PointParameteri, X_GLrop_PointParameteri, GLint)
408
409 glxvendr_3(WindowPos3f, X_GLrop_WindowPos3fARB, GLfloat, ARB)
410
411 glxproto_1s(ActiveStencilFaceEXT, X_GLrop_ActiveStencilFaceEXT, GLenum)
412
413 glxproto_4s(Rects, X_GLrop_Rectsv, GLshort)
414 glxproto_4s(Recti, X_GLrop_Rectiv, GLint)
415 glxproto_4s(Rectf, X_GLrop_Rectfv, GLfloat)
416 glxproto_4s(Rectd, X_GLrop_Rectdv, GLdouble)
417
418 #if !defined( GENERATE_GLX_PROTOCOL_FUNCTIONS )
419 GLboolean __indirect_glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences);
420 GLboolean __indirect_glAreTexturesResidentEXT(GLsizei n, const GLuint *textures, GLboolean *residences);
421 void __indirect_glArrayElement(GLint i);
422 void __indirect_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
423 void __indirect_glCallLists(GLsizei n, GLenum type, const GLvoid *lists);
424 void __indirect_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
425 void __indirect_glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table);
426 void __indirect_glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
427 void __indirect_glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
428 void __indirect_glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
429 void __indirect_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
430 void __indirect_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
431 void __indirect_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
432 void __indirect_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
433 void __indirect_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
434 void __indirect_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
435 void __indirect_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
436 void __indirect_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
437 void __indirect_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
438 void __indirect_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
439 void __indirect_glDeleteLists(GLuint list, GLsizei range);
440 void __indirect_glDeleteTextures(GLsizei n, const GLuint *textures);
441 void __indirect_glDeleteTexturesEXT(GLsizei n, const GLuint *textures);
442 void __indirect_glDisable(GLenum cap);
443 void __indirect_glDisableClientState(GLenum array);
444 void __indirect_glDrawArrays(GLenum mode, GLint first, GLsizei count);
445 void __indirect_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
446 void __indirect_glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
447 void __indirect_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
448 void __indirect_glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer);
449 void __indirect_glEnable(GLenum cap);
450 void __indirect_glEnableClientState(GLenum array);
451 void __indirect_glEndList(void);
452 void __indirect_glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer);
453 void __indirect_glFinish(void);
454 void __indirect_glFlush(void);
455 GLuint __indirect_glGenLists(GLsizei range);
456 void __indirect_glGenTextures(GLsizei n, GLuint *textures);
457 void __indirect_glGenTexturesEXT(GLsizei n, GLuint *textures);
458 void __indirect_glGetBooleanv(GLenum val, GLboolean *b);
459 void __indirect_glGetClipPlane(GLenum plane, GLdouble *equation);
460 void __indirect_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table);
461 void __indirect_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params);
462 void __indirect_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params);
463 void __indirect_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image);
464 void __indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params);
465 void __indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params);
466 void __indirect_glGetDoublev(GLenum val, GLdouble *d);
467 GLenum __indirect_glGetError(void);
468 void __indirect_glGetFloatv(GLenum val, GLfloat *f);
469 void __indirect_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
470 void __indirect_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params);
471 void __indirect_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params);
472 void __indirect_glGetIntegerv(GLenum val, GLint *i);
473 void __indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat *params);
474 void __indirect_glGetLightiv(GLenum light, GLenum pname, GLint *params);
475 void __indirect_glGetMapdv(GLenum target, GLenum query, GLdouble *v);
476 void __indirect_glGetMapfv(GLenum target, GLenum query, GLfloat *v);
477 void __indirect_glGetMapiv(GLenum target, GLenum query, GLint *v);
478 void __indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params);
479 void __indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint *params);
480 void __indirect_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
481 void __indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params);
482 void __indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params);
483 void __indirect_glGetPixelMapfv(GLenum map, GLfloat *values);
484 void __indirect_glGetPixelMapuiv(GLenum map, GLuint *values);
485 void __indirect_glGetPixelMapusv(GLenum map, GLushort *values);
486 void __indirect_glGetPointerv(GLenum pname, void **params);
487 void __indirect_glGetPolygonStipple(GLubyte *mask);
488 const GLubyte *__indirect_glGetString(GLenum name);
489 void __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
490 void __indirect_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params);
491 void __indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint *params);
492 void __indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params);
493 void __indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params);
494 void __indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint *params);
495 void __indirect_glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *texels);
496 void __indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params);
497 void __indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);
498 void __indirect_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
499 void __indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
500 void __indirect_glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
501 void __indirect_glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
502 void __indirect_glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);
503 GLboolean __indirect_glIsEnabled(GLenum cap);
504 GLboolean __indirect_glIsList(GLuint list);
505 GLboolean __indirect_glIsTexture(GLuint texture);
506 GLboolean __indirect_glIsTextureEXT(GLuint texture);
507 void __indirect_glLineStipple(GLint factor, GLushort pattern);
508 void __indirect_glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *pnts);
509 void __indirect_glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *pnts);
510 void __indirect_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustr, GLint uord, GLdouble v1, GLdouble v2, GLint vstr, GLint vord, const GLdouble *pnts);
511 void __indirect_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustr, GLint uord, GLfloat v1, GLfloat v2, GLint vstr, GLint vord, const GLfloat *pnts);
512 void __indirect_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2);
513 void __indirect_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2);
514 void __indirect_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
515 void __indirect_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
516 void __indirect_glNewList(GLuint list, GLenum mode);
517 void __indirect_glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
518 void __indirect_glPixelMapfv(GLenum map, GLint mapsize, const GLfloat *values);
519 void __indirect_glPixelMapuiv(GLenum map, GLint mapsize, const GLuint *values);
520 void __indirect_glPixelMapusv(GLenum map, GLint mapsize, const GLushort *values);
521 void __indirect_glPixelStoref(GLenum pname, GLfloat param);
522 void __indirect_glPixelStorei(GLenum pname, GLint param);
523 void __indirect_glPolygonStipple(const GLubyte *mask);
524 void __indirect_glPopClientAttrib(void);
525 void __indirect_glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities);
526 void __indirect_glPushClientAttrib(GLuint mask);
527 void __indirect_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
528 void __indirect_glRectdv(const GLdouble *v1, const GLdouble *v2);
529 void __indirect_glRectfv(const GLfloat *v1, const GLfloat *v2);
530 void __indirect_glRectiv(const GLint *v1, const GLint *v2);
531 void __indirect_glRectsv(const GLshort *v1, const GLshort *v2);
532 GLint __indirect_glRenderMode(GLenum mode);
533 void __indirect_glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
534 void __indirect_glSelectBuffer(GLsizei numnames, GLuint *buffer);
535 void __indirect_glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
536 void __indirect_glStencilFunc(GLenum func, GLint ref, GLuint mask);
537 void __indirect_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
538 void __indirect_glTexImage1D(GLenum target, GLint level, GLint components, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *image);
539 void __indirect_glTexImage2D(GLenum target, GLint level, GLint components, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *image);
540 void __indirect_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *image);
541 void __indirect_glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
542 void __indirect_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
543 void __indirect_glTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *image);
544 void __indirect_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
545 void __indirect_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
546
547 void __indirect_glClientActiveTextureARB(GLenum texture);
548
549 void __indirect_glSampleCoverageARB( GLfloat value, GLboolean invert );
550
551 void __indirect_glWindowPos2dARB(GLdouble x, GLdouble y);
552 void __indirect_glWindowPos2iARB(GLint x, GLint y);
553 void __indirect_glWindowPos2fARB(GLfloat x, GLfloat y);
554 void __indirect_glWindowPos2sARB(GLshort x, GLshort y);
555 void __indirect_glWindowPos2dvARB(const GLdouble * p);
556 void __indirect_glWindowPos2fvARB(const GLfloat * p);
557 void __indirect_glWindowPos2ivARB(const GLint * p);
558 void __indirect_glWindowPos2svARB(const GLshort * p);
559 void __indirect_glWindowPos3dARB(GLdouble x, GLdouble y, GLdouble z);
560 void __indirect_glWindowPos3iARB(GLint x, GLint y, GLint z);
561 void __indirect_glWindowPos3sARB(GLshort x, GLshort y, GLshort z);
562 void __indirect_glWindowPos3dvARB(const GLdouble * p);
563 void __indirect_glWindowPos3ivARB(const GLint * p);
564 void __indirect_glWindowPos3svARB(const GLshort * p);
565
566 void __indirect_glMultiDrawArraysEXT(GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
567 void __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid ** indices, GLsizei primcount);
568
569 void __indirect_glSampleMaskSGIS( GLfloat value, GLboolean invert );
570 void __indirect_glSamplePatternSGIS( GLenum pass );
571
572 /* ARB 12. GL_ARB_texture_compression / GL 1.3 */
573
574 void __indirect_glGetCompressedTexImageARB( GLenum target, GLint level,
575 GLvoid * img );
576 void __indirect_glCompressedTexImage1DARB( GLenum target, GLint level,
577 GLenum internalformat, GLsizei width,
578 GLint border, GLsizei image_size, const GLvoid *data );
579 void __indirect_glCompressedTexImage2DARB( GLenum target, GLint level,
580 GLenum internalformat, GLsizei width, GLsizei height,
581 GLint border, GLsizei image_size, const GLvoid *data );
582 void __indirect_glCompressedTexImage3DARB( GLenum target, GLint level,
583 GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth,
584 GLint border, GLsizei image_size, const GLvoid *data );
585 void __indirect_glCompressedTexSubImage1DARB( GLenum target, GLint level,
586 GLint xoffset,
587 GLsizei width,
588 GLenum format, GLsizei image_size, const GLvoid *data );
589 void __indirect_glCompressedTexSubImage2DARB( GLenum target, GLint level,
590 GLint xoffset, GLint yoffset,
591 GLsizei width, GLsizei height,
592 GLenum format, GLsizei image_size, const GLvoid *data );
593 void __indirect_glCompressedTexSubImage3DARB( GLenum target, GLint level,
594 GLint xoffset, GLint yoffset, GLint zoffset,
595 GLsizei width, GLsizei height, GLsizei depth,
596 GLenum format, GLsizei image_size, const GLvoid *data );
597
598 void __indirect_glColorPointerEXT(GLint size, GLenum type, GLsizei stride,
599 GLsizei count, const GLvoid * pointer );
600 void __indirect_glEdgeFlagPointerEXT(GLsizei stride,
601 GLsizei count, const GLboolean * pointer );
602 void __indirect_glIndexPointerEXT(GLenum type, GLsizei stride,
603 GLsizei count, const GLvoid * pointer );
604 void __indirect_glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count,
605 const GLvoid * pointer );
606 void __indirect_glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride,
607 GLsizei count, const GLvoid * pointer );
608 void __indirect_glVertexPointerEXT(GLint size, GLenum type, GLsizei stride,
609 GLsizei count, const GLvoid * pointer );
610
611 /* 145. GL_EXT_secondary_color / GL 1.4 */
612
613 void __indirect_glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *);
614
615 /* 149. GL_EXT_fog_coord / GL 1.4 */
616
617 void __indirect_glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *);
618
619 # undef glxproto_void
620 # undef glxproto_Cv
621 # undef glxproto_Cv_transpose
622 # undef glxproto_1s
623 # undef glxproto_2s
624 # undef glxproto_3s
625 # undef glxproto_4s
626 # undef glxproto_6s
627 # undef glxproto_enum1_1s
628 # undef glxproto_enum1_1v
629 # undef glxproto_enum1_2s
630 # undef glxproto_enum1_2v
631 # undef glxproto_enum1_3s
632 # undef glxproto_enum1_3v
633 # undef glxproto_enum1_4s
634 # undef glxproto_enum1_4v
635 # undef glxproto_enum1_Vv
636 # undef glxproto_enum2_1s
637 # undef glxproto_enum2_Vv
638 # undef glxproto_1
639 # undef glxvendr_1
640 # undef glxproto_2
641 # undef glxvendr_2
642 # undef glxproto_3
643 # undef glxvendr_3
644 # undef glxproto_4
645 # undef glxproto_enum1_1
646 # undef glxvendr_enum1_1
647 # undef glxproto_enum1_2
648 # undef glxvendr_enum1_2
649 # undef glxproto_enum1_3
650 # undef glxvendr_enum1_3
651 # undef glxproto_enum1_4
652 # undef glxvendr_enum1_4
653 # undef glxproto_enum1_V
654 # undef glxvendr_enum1_V
655 # undef glxproto_enum2_V
656 # undef glxvendr_enum2_V
657 #endif /* !defined( GENERATE_GLX_PROTOCOL_FUNCTIONS ) */
658
659 #endif /* _INDIRECT_H_ */