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