Make the transition to script-genereated GLX code easier.
[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
354 void __indirect_glLoadTransposeMatrixdARB( const GLdouble * m );
355 void __indirect_glLoadTransposeMatrixfARB( const GLfloat * m );
356 void __indirect_glMultTransposeMatrixdARB( const GLdouble * m );
357 void __indirect_glMultTransposeMatrixfARB( const GLfloat * m );
358
359 glxproto_6s(Ortho, X_GLrop_Ortho, GLdouble)
360
361 glxproto_void(PushMatrix, X_GLrop_PushMatrix)
362 glxproto_void(PopMatrix, X_GLrop_PopMatrix)
363
364 glxproto_4s(Rotatef, X_GLrop_Rotatef, GLfloat)
365 glxproto_3s(Scalef, X_GLrop_Scalef, GLfloat)
366 glxproto_3s(Translatef, X_GLrop_Translatef, GLfloat)
367 glxproto_4s(Rotated, X_GLrop_Rotated, GLdouble)
368 glxproto_3s(Scaled, X_GLrop_Scaled, GLdouble)
369 glxproto_3s(Translated, X_GLrop_Translated, GLdouble)
370
371 glxproto_2s(PolygonOffset, X_GLrop_PolygonOffset, GLfloat)
372
373 glxproto_enum1_1s(BindTexture, X_GLrop_BindTexture, GLuint)
374
375 glxproto_4s(BlendColor, X_GLrop_BlendColor, GLclampf)
376 glxproto_1s(BlendEquation, X_GLrop_BlendEquation, GLenum)
377
378 glxproto_enum2_Vv(ColorTableParameteriv, X_GLrop_ColorTableParameteriv, GLint)
379 glxproto_enum2_Vv(ColorTableParameterfv, X_GLrop_ColorTableParameterfv, GLfloat)
380
381 glxproto_enum2_V(ConvolutionParameteri, X_GLrop_ConvolutionParameteri, GLint)
382 glxproto_enum2_V(ConvolutionParameterf, X_GLrop_ConvolutionParameterf, GLfloat)
383
384 glxproto_enum2_1s(Minmax, X_GLrop_Minmax, GLboolean)
385
386 glxproto_1s(ResetHistogram, X_GLrop_ResetHistogram, GLenum)
387 glxproto_1s(ResetMinmax, X_GLrop_ResetMinmax, GLenum)
388
389 glxproto_1s( ActiveTextureARB, X_GLrop_ActiveTextureARB, GLenum)
390 glxvendr_enum1_1(MultiTexCoord1s, X_GLrop_MultiTexCoord1svARB, GLshort, ARB)
391 glxvendr_enum1_1(MultiTexCoord1i, X_GLrop_MultiTexCoord1ivARB, GLint, ARB)
392 glxvendr_enum1_1(MultiTexCoord1f, X_GLrop_MultiTexCoord1fvARB, GLfloat, ARB)
393 glxvendr_enum1_1(MultiTexCoord1d, X_GLrop_MultiTexCoord1dvARB, GLdouble, ARB)
394 glxvendr_enum1_2(MultiTexCoord2s, X_GLrop_MultiTexCoord2svARB, GLshort, ARB)
395 glxvendr_enum1_2(MultiTexCoord2i, X_GLrop_MultiTexCoord2ivARB, GLint, ARB)
396 glxvendr_enum1_2(MultiTexCoord2f, X_GLrop_MultiTexCoord2fvARB, GLfloat, ARB)
397 glxvendr_enum1_2(MultiTexCoord2d, X_GLrop_MultiTexCoord2dvARB, GLdouble, ARB)
398 glxvendr_enum1_3(MultiTexCoord3s, X_GLrop_MultiTexCoord3svARB, GLshort, ARB)
399 glxvendr_enum1_3(MultiTexCoord3i, X_GLrop_MultiTexCoord3ivARB, GLint, ARB)
400 glxvendr_enum1_3(MultiTexCoord3f, X_GLrop_MultiTexCoord3fvARB, GLfloat, ARB)
401 glxvendr_enum1_3(MultiTexCoord3d, X_GLrop_MultiTexCoord3dvARB, GLdouble, ARB)
402 glxvendr_enum1_4(MultiTexCoord4s, X_GLrop_MultiTexCoord4svARB, GLshort, ARB)
403 glxvendr_enum1_4(MultiTexCoord4i, X_GLrop_MultiTexCoord4ivARB, GLint, ARB)
404 glxvendr_enum1_4(MultiTexCoord4f, X_GLrop_MultiTexCoord4fvARB, GLfloat, ARB)
405 glxvendr_enum1_4(MultiTexCoord4d, X_GLrop_MultiTexCoord4dvARB, GLdouble, ARB)
406
407 #define X_GLrop_PointParameterfEXT 2065
408 #define X_GLrop_PointParameterfvEXT 2066
409 #define X_GLrop_PointParameteriNV 4221
410 #define X_GLrop_PointParameterivNV 4222
411
412 glxvendr_enum1_V(PointParameterf, X_GLrop_PointParameterf, GLfloat, EXT)
413 glxvendr_enum1_V(PointParameteri, X_GLrop_PointParameteri, GLint, NV)
414
415 glxvendr_3(WindowPos3f, X_GLrop_WindowPos3fARB, GLfloat, MESA)
416
417 glxproto_1s(ActiveStencilFaceEXT, X_GLrop_ActiveStencilFaceEXT, GLenum)
418
419 glxproto_4s(Rects, X_GLrop_Rectsv, GLshort)
420 glxproto_4s(Recti, X_GLrop_Rectiv, GLint)
421 glxproto_4s(Rectf, X_GLrop_Rectfv, GLfloat)
422 glxproto_4s(Rectd, X_GLrop_Rectdv, GLdouble)
423
424 #if !defined( GENERATE_GLX_PROTOCOL_FUNCTIONS )
425 GLboolean __indirect_glAreTexturesResident(GLsizei n, const GLuint *textures, GLboolean *residences);
426 GLboolean __indirect_glAreTexturesResidentEXT(GLsizei n, const GLuint *textures, GLboolean *residences);
427 void __indirect_glArrayElement(GLint i);
428 void __indirect_glBitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
429 void __indirect_glCallLists(GLsizei n, GLenum type, const GLvoid *lists);
430 void __indirect_glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
431 void __indirect_glColorSubTable(GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table);
432 void __indirect_glColorTable(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
433 void __indirect_glConvolutionFilter1D(GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
434 void __indirect_glConvolutionFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
435 void __indirect_glCopyConvolutionFilter1D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
436 void __indirect_glCopyConvolutionFilter2D(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
437 void __indirect_glCopyColorTable(GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
438 void __indirect_glCopyColorSubTable(GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
439 void __indirect_glCopyPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
440 void __indirect_glCopyTexImage1D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
441 void __indirect_glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
442 void __indirect_glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
443 void __indirect_glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
444 void __indirect_glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
445 void __indirect_glDeleteLists(GLuint list, GLsizei range);
446 void __indirect_glDeleteTextures(GLsizei n, const GLuint *textures);
447 void __indirect_glDeleteTexturesEXT(GLsizei n, const GLuint *textures);
448 void __indirect_glDisable(GLenum cap);
449 void __indirect_glDisableClientState(GLenum array);
450 void __indirect_glDrawArrays(GLenum mode, GLint first, GLsizei count);
451 void __indirect_glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
452 void __indirect_glDrawPixels(GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
453 void __indirect_glDrawRangeElements(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
454 void __indirect_glEdgeFlagPointer(GLsizei stride, const GLvoid *pointer);
455 void __indirect_glEnable(GLenum cap);
456 void __indirect_glEnableClientState(GLenum array);
457 void __indirect_glEndList(void);
458 void __indirect_glFeedbackBuffer(GLsizei size, GLenum type, GLfloat *buffer);
459 void __indirect_glFinish(void);
460 void __indirect_glFlush(void);
461 GLuint __indirect_glGenLists(GLsizei range);
462 void __indirect_glGenTextures(GLsizei n, GLuint *textures);
463 void __indirect_glGenTexturesEXT(GLsizei n, GLuint *textures);
464 void __indirect_glGetBooleanv(GLenum val, GLboolean *b);
465 void __indirect_glGetClipPlane(GLenum plane, GLdouble *equation);
466 void __indirect_glGetColorTable(GLenum target, GLenum format, GLenum type, GLvoid *table);
467 void __indirect_glGetColorTableParameterfv(GLenum target, GLenum pname, GLfloat *params);
468 void __indirect_glGetColorTableParameteriv(GLenum target, GLenum pname, GLint *params);
469 void __indirect_glGetConvolutionFilter(GLenum target, GLenum format, GLenum type, GLvoid *image);
470 void __indirect_glGetConvolutionParameterfv(GLenum target, GLenum pname, GLfloat *params);
471 void __indirect_glGetConvolutionParameteriv(GLenum target, GLenum pname, GLint *params);
472 void __indirect_glGetDoublev(GLenum val, GLdouble *d);
473 GLenum __indirect_glGetError(void);
474 void __indirect_glGetFloatv(GLenum val, GLfloat *f);
475 void __indirect_glGetHistogram(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
476 void __indirect_glGetHistogramParameterfv(GLenum target, GLenum pname, GLfloat *params);
477 void __indirect_glGetHistogramParameteriv(GLenum target, GLenum pname, GLint *params);
478 void __indirect_glGetIntegerv(GLenum val, GLint *i);
479 void __indirect_glGetLightfv(GLenum light, GLenum pname, GLfloat *params);
480 void __indirect_glGetLightiv(GLenum light, GLenum pname, GLint *params);
481 void __indirect_glGetMapdv(GLenum target, GLenum query, GLdouble *v);
482 void __indirect_glGetMapfv(GLenum target, GLenum query, GLfloat *v);
483 void __indirect_glGetMapiv(GLenum target, GLenum query, GLint *v);
484 void __indirect_glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params);
485 void __indirect_glGetMaterialiv(GLenum face, GLenum pname, GLint *params);
486 void __indirect_glGetMinmax(GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
487 void __indirect_glGetMinmaxParameterfv(GLenum target, GLenum pname, GLfloat *params);
488 void __indirect_glGetMinmaxParameteriv(GLenum target, GLenum pname, GLint *params);
489 void __indirect_glGetPixelMapfv(GLenum map, GLfloat *values);
490 void __indirect_glGetPixelMapuiv(GLenum map, GLuint *values);
491 void __indirect_glGetPixelMapusv(GLenum map, GLushort *values);
492 void __indirect_glGetPointerv(GLenum pname, void **params);
493 void __indirect_glGetPolygonStipple(GLubyte *mask);
494 const GLubyte *__indirect_glGetString(GLenum name);
495 void __indirect_glGetSeparableFilter(GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
496 void __indirect_glGetTexEnvfv(GLenum target, GLenum pname, GLfloat *params);
497 void __indirect_glGetTexEnviv(GLenum target, GLenum pname, GLint *params);
498 void __indirect_glGetTexGendv(GLenum coord, GLenum pname, GLdouble *params);
499 void __indirect_glGetTexGenfv(GLenum coord, GLenum pname, GLfloat *params);
500 void __indirect_glGetTexGeniv(GLenum coord, GLenum pname, GLint *params);
501 void __indirect_glGetTexImage(GLenum target, GLint level, GLenum format, GLenum type, GLvoid *texels);
502 void __indirect_glGetTexLevelParameterfv(GLenum target, GLint level, GLenum pname, GLfloat *params);
503 void __indirect_glGetTexLevelParameteriv(GLenum target, GLint level, GLenum pname, GLint *params);
504 void __indirect_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat *params);
505 void __indirect_glGetTexParameteriv(GLenum target, GLenum pname, GLint *params);
506 void __indirect_glHistogram(GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
507 void __indirect_glIndexPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
508 void __indirect_glInterleavedArrays(GLenum format, GLsizei stride, const GLvoid *pointer);
509 GLboolean __indirect_glIsEnabled(GLenum cap);
510 GLboolean __indirect_glIsList(GLuint list);
511 GLboolean __indirect_glIsTexture(GLuint texture);
512 GLboolean __indirect_glIsTextureEXT(GLuint texture);
513 void __indirect_glLineStipple(GLint factor, GLushort pattern);
514 void __indirect_glMap1d(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *pnts);
515 void __indirect_glMap1f(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *pnts);
516 void __indirect_glMap2d(GLenum target, GLdouble u1, GLdouble u2, GLint ustr, GLint uord, GLdouble v1, GLdouble v2, GLint vstr, GLint vord, const GLdouble *pnts);
517 void __indirect_glMap2f(GLenum target, GLfloat u1, GLfloat u2, GLint ustr, GLint uord, GLfloat v1, GLfloat v2, GLint vstr, GLint vord, const GLfloat *pnts);
518 void __indirect_glMapGrid1d(GLint un, GLdouble u1, GLdouble u2);
519 void __indirect_glMapGrid1f(GLint un, GLfloat u1, GLfloat u2);
520 void __indirect_glMapGrid2d(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
521 void __indirect_glMapGrid2f(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
522 void __indirect_glNewList(GLuint list, GLenum mode);
523 void __indirect_glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
524 void __indirect_glPixelMapfv(GLenum map, GLint mapsize, const GLfloat *values);
525 void __indirect_glPixelMapuiv(GLenum map, GLint mapsize, const GLuint *values);
526 void __indirect_glPixelMapusv(GLenum map, GLint mapsize, const GLushort *values);
527 void __indirect_glPixelStoref(GLenum pname, GLfloat param);
528 void __indirect_glPixelStorei(GLenum pname, GLint param);
529 void __indirect_glPolygonStipple(const GLubyte *mask);
530 void __indirect_glPopClientAttrib(void);
531 void __indirect_glPrioritizeTextures(GLsizei n, const GLuint *textures, const GLclampf *priorities);
532 void __indirect_glPushClientAttrib(GLuint mask);
533 void __indirect_glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
534 void __indirect_glRectdv(const GLdouble *v1, const GLdouble *v2);
535 void __indirect_glRectfv(const GLfloat *v1, const GLfloat *v2);
536 void __indirect_glRectiv(const GLint *v1, const GLint *v2);
537 void __indirect_glRectsv(const GLshort *v1, const GLshort *v2);
538 GLint __indirect_glRenderMode(GLenum mode);
539 void __indirect_glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
540 void __indirect_glSelectBuffer(GLsizei numnames, GLuint *buffer);
541 void __indirect_glSeparableFilter2D(GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
542 void __indirect_glStencilFunc(GLenum func, GLint ref, GLuint mask);
543 void __indirect_glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
544 void __indirect_glTexImage1D(GLenum target, GLint level, GLint components, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *image);
545 void __indirect_glTexImage2D(GLenum target, GLint level, GLint components, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *image);
546 void __indirect_glTexImage3D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *image);
547 void __indirect_glTexSubImage1D(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
548 void __indirect_glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
549 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);
550 void __indirect_glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
551 void __indirect_glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
552
553 void __indirect_glClientActiveTextureARB(GLenum texture);
554
555 void __indirect_glSampleCoverageARB( GLfloat value, GLboolean invert );
556
557 void __indirect_glWindowPos2dMESA(GLdouble x, GLdouble y);
558 void __indirect_glWindowPos2iMESA(GLint x, GLint y);
559 void __indirect_glWindowPos2fMESA(GLfloat x, GLfloat y);
560 void __indirect_glWindowPos2sMESA(GLshort x, GLshort y);
561 void __indirect_glWindowPos2dvMESA(const GLdouble * p);
562 void __indirect_glWindowPos2fvMESA(const GLfloat * p);
563 void __indirect_glWindowPos2ivMESA(const GLint * p);
564 void __indirect_glWindowPos2svMESA(const GLshort * p);
565 void __indirect_glWindowPos3dMESA(GLdouble x, GLdouble y, GLdouble z);
566 void __indirect_glWindowPos3iMESA(GLint x, GLint y, GLint z);
567 void __indirect_glWindowPos3sMESA(GLshort x, GLshort y, GLshort z);
568 void __indirect_glWindowPos3dvMESA(const GLdouble * p);
569 void __indirect_glWindowPos3ivMESA(const GLint * p);
570 void __indirect_glWindowPos3svMESA(const GLshort * p);
571
572 void __indirect_glMultiDrawArraysEXT(GLenum mode, GLint *first, GLsizei *count, GLsizei primcount);
573 void __indirect_glMultiDrawElementsEXT(GLenum mode, const GLsizei *count, GLenum type, const GLvoid ** indices, GLsizei primcount);
574
575 void __indirect_glSampleMaskSGIS( GLfloat value, GLboolean invert );
576 void __indirect_glSamplePatternSGIS( GLenum pass );
577
578 /* ARB 12. GL_ARB_texture_compression / GL 1.3 */
579
580 void __indirect_glGetCompressedTexImageARB( GLenum target, GLint level,
581 GLvoid * img );
582 void __indirect_glCompressedTexImage1DARB( GLenum target, GLint level,
583 GLenum internalformat, GLsizei width,
584 GLint border, GLsizei image_size, const GLvoid *data );
585 void __indirect_glCompressedTexImage2DARB( GLenum target, GLint level,
586 GLenum internalformat, GLsizei width, GLsizei height,
587 GLint border, GLsizei image_size, const GLvoid *data );
588 void __indirect_glCompressedTexImage3DARB( GLenum target, GLint level,
589 GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth,
590 GLint border, GLsizei image_size, const GLvoid *data );
591 void __indirect_glCompressedTexSubImage1DARB( GLenum target, GLint level,
592 GLint xoffset,
593 GLsizei width,
594 GLenum format, GLsizei image_size, const GLvoid *data );
595 void __indirect_glCompressedTexSubImage2DARB( GLenum target, GLint level,
596 GLint xoffset, GLint yoffset,
597 GLsizei width, GLsizei height,
598 GLenum format, GLsizei image_size, const GLvoid *data );
599 void __indirect_glCompressedTexSubImage3DARB( GLenum target, GLint level,
600 GLint xoffset, GLint yoffset, GLint zoffset,
601 GLsizei width, GLsizei height, GLsizei depth,
602 GLenum format, GLsizei image_size, const GLvoid *data );
603
604 void __indirect_glColorPointerEXT(GLint size, GLenum type, GLsizei stride,
605 GLsizei count, const GLvoid * pointer );
606 void __indirect_glEdgeFlagPointerEXT(GLsizei stride,
607 GLsizei count, const GLboolean * pointer );
608 void __indirect_glIndexPointerEXT(GLenum type, GLsizei stride,
609 GLsizei count, const GLvoid * pointer );
610 void __indirect_glNormalPointerEXT(GLenum type, GLsizei stride, GLsizei count,
611 const GLvoid * pointer );
612 void __indirect_glTexCoordPointerEXT(GLint size, GLenum type, GLsizei stride,
613 GLsizei count, const GLvoid * pointer );
614 void __indirect_glVertexPointerEXT(GLint size, GLenum type, GLsizei stride,
615 GLsizei count, const GLvoid * pointer );
616
617 /* 145. GL_EXT_secondary_color / GL 1.4 */
618
619 void __indirect_glSecondaryColorPointerEXT (GLint, GLenum, GLsizei, const GLvoid *);
620
621 /* 149. GL_EXT_fog_coord / GL 1.4 */
622
623 void __indirect_glFogCoordPointerEXT (GLenum, GLsizei, const GLvoid *);
624
625 # undef glxproto_void
626 # undef glxproto_Cv
627 # undef glxproto_Cv_transpose
628 # undef glxproto_1s
629 # undef glxproto_2s
630 # undef glxproto_3s
631 # undef glxproto_4s
632 # undef glxproto_6s
633 # undef glxproto_enum1_1s
634 # undef glxproto_enum1_1v
635 # undef glxproto_enum1_2s
636 # undef glxproto_enum1_2v
637 # undef glxproto_enum1_3s
638 # undef glxproto_enum1_3v
639 # undef glxproto_enum1_4s
640 # undef glxproto_enum1_4v
641 # undef glxproto_enum1_Vv
642 # undef glxproto_enum2_1s
643 # undef glxproto_enum2_Vv
644 # undef glxproto_1
645 # undef glxvendr_1
646 # undef glxproto_2
647 # undef glxvendr_2
648 # undef glxproto_3
649 # undef glxvendr_3
650 # undef glxproto_4
651 # undef glxproto_enum1_1
652 # undef glxvendr_enum1_1
653 # undef glxproto_enum1_2
654 # undef glxvendr_enum1_2
655 # undef glxproto_enum1_3
656 # undef glxvendr_enum1_3
657 # undef glxproto_enum1_4
658 # undef glxvendr_enum1_4
659 # undef glxproto_enum1_V
660 # undef glxvendr_enum1_V
661 # undef glxproto_enum2_V
662 # undef glxvendr_enum2_V
663 #endif /* !defined( GENERATE_GLX_PROTOCOL_FUNCTIONS ) */
664
665 #endif /* _INDIRECT_H_ */