1 ##########################################################################
3 # Copyright 2008-2009 VMware, Inc.
6 # Permission is hereby granted, free of charge, to any person obtaining a copy
7 # of this software and associated documentation files (the "Software"), to deal
8 # in the Software without restriction, including without limitation the rights
9 # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 # copies of the Software, and to permit persons to whom the Software is
11 # furnished to do so, subject to the following conditions:
13 # The above copyright notice and this permission notice shall be included in
14 # all copies or substantial portions of the Software.
16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 ##########################################################################/
29 opengl32 = Dll("opengl32")
30 opengl32.functions += [
31 DllFunction(Void, "glNewList", [(GLuint, "list"), (GLenum, "mode")]),
32 DllFunction(Void, "glEndList", []),
33 DllFunction(Void, "glCallList", [(GLuint, "list")]),
34 DllFunction(Void, "glCallLists", [(GLsizei, "n"), (GLenum, "type"), (Pointer(Const(GLvoid)), "lists")]),
35 DllFunction(Void, "glDeleteLists", [(GLuint, "list"), (GLsizei, "range")]),
36 DllFunction(GLuint, "glGenLists", [(GLsizei, "range")]),
37 DllFunction(Void, "glListBase", [(GLuint, "base")]),
38 DllFunction(Void, "glBegin", [(GLprimenum, "mode")]),
39 DllFunction(Void, "glBitmap", [(GLsizei, "width"), (GLsizei, "height"), (GLfloat, "xorig"), (GLfloat, "yorig"), (GLfloat, "xmove"), (GLfloat, "ymove"), (Pointer(Const(GLubyte)), "bitmap")]),
40 DllFunction(Void, "glColor3b", [(GLbyte, "red"), (GLbyte, "green"), (GLbyte, "blue")]),
41 DllFunction(Void, "glColor3bv", [(Pointer(Const(GLbyte)), "v")]),
42 DllFunction(Void, "glColor3d", [(GLdouble, "red"), (GLdouble, "green"), (GLdouble, "blue")]),
43 DllFunction(Void, "glColor3dv", [(Pointer(Const(GLdouble)), "v")]),
44 DllFunction(Void, "glColor3f", [(GLfloat, "red"), (GLfloat, "green"), (GLfloat, "blue")]),
45 DllFunction(Void, "glColor3fv", [(Array(Const(GLfloat), "3"), "v")]),
46 DllFunction(Void, "glColor3i", [(GLint, "red"), (GLint, "green"), (GLint, "blue")]),
47 DllFunction(Void, "glColor3iv", [(Pointer(Const(GLint)), "v")]),
48 DllFunction(Void, "glColor3s", [(GLshort, "red"), (GLshort, "green"), (GLshort, "blue")]),
49 DllFunction(Void, "glColor3sv", [(Pointer(Const(GLshort)), "v")]),
50 DllFunction(Void, "glColor3ub", [(GLubyte, "red"), (GLubyte, "green"), (GLubyte, "blue")]),
51 DllFunction(Void, "glColor3ubv", [(Pointer(Const(GLubyte)), "v")]),
52 DllFunction(Void, "glColor3ui", [(GLuint, "red"), (GLuint, "green"), (GLuint, "blue")]),
53 DllFunction(Void, "glColor3uiv", [(Pointer(Const(GLuint)), "v")]),
54 DllFunction(Void, "glColor3us", [(GLushort, "red"), (GLushort, "green"), (GLushort, "blue")]),
55 DllFunction(Void, "glColor3usv", [(Pointer(Const(GLushort)), "v")]),
56 DllFunction(Void, "glColor4b", [(GLbyte, "red"), (GLbyte, "green"), (GLbyte, "blue"), (GLbyte, "alpha")]),
57 DllFunction(Void, "glColor4bv", [(Pointer(Const(GLbyte)), "v")]),
58 DllFunction(Void, "glColor4d", [(GLdouble, "red"), (GLdouble, "green"), (GLdouble, "blue"), (GLdouble, "alpha")]),
59 DllFunction(Void, "glColor4dv", [(Pointer(Const(GLdouble)), "v")]),
60 DllFunction(Void, "glColor4f", [(GLfloat, "red"), (GLfloat, "green"), (GLfloat, "blue"), (GLfloat, "alpha")]),
61 DllFunction(Void, "glColor4fv", [(Pointer(Const(GLfloat)), "v")]),
62 DllFunction(Void, "glColor4i", [(GLint, "red"), (GLint, "green"), (GLint, "blue"), (GLint, "alpha")]),
63 DllFunction(Void, "glColor4iv", [(Pointer(Const(GLint)), "v")]),
64 DllFunction(Void, "glColor4s", [(GLshort, "red"), (GLshort, "green"), (GLshort, "blue"), (GLshort, "alpha")]),
65 DllFunction(Void, "glColor4sv", [(Pointer(Const(GLshort)), "v")]),
66 DllFunction(Void, "glColor4ub", [(GLubyte, "red"), (GLubyte, "green"), (GLubyte, "blue"), (GLubyte, "alpha")]),
67 DllFunction(Void, "glColor4ubv", [(Pointer(Const(GLubyte)), "v")]),
68 DllFunction(Void, "glColor4ui", [(GLuint, "red"), (GLuint, "green"), (GLuint, "blue"), (GLuint, "alpha")]),
69 DllFunction(Void, "glColor4uiv", [(Pointer(Const(GLuint)), "v")]),
70 DllFunction(Void, "glColor4us", [(GLushort, "red"), (GLushort, "green"), (GLushort, "blue"), (GLushort, "alpha")]),
71 DllFunction(Void, "glColor4usv", [(Pointer(Const(GLushort)), "v")]),
72 DllFunction(Void, "glEdgeFlag", [(GLboolean, "flag")]),
73 DllFunction(Void, "glEdgeFlagv", [(Pointer(Const(GLboolean)), "flag")]),
74 DllFunction(Void, "glEnd", []),
75 DllFunction(Void, "glIndexd", [(GLdouble, "c")]),
76 DllFunction(Void, "glIndexdv", [(Pointer(Const(GLdouble)), "c")]),
77 DllFunction(Void, "glIndexf", [(GLfloat, "c")]),
78 DllFunction(Void, "glIndexfv", [(Pointer(Const(GLfloat)), "c")]),
79 DllFunction(Void, "glIndexi", [(GLint, "c")]),
80 DllFunction(Void, "glIndexiv", [(Pointer(Const(GLint)), "c")]),
81 DllFunction(Void, "glIndexs", [(GLshort, "c")]),
82 DllFunction(Void, "glIndexsv", [(Pointer(Const(GLshort)), "c")]),
83 DllFunction(Void, "glNormal3b", [(GLbyte, "nx"), (GLbyte, "ny"), (GLbyte, "nz")]),
84 DllFunction(Void, "glNormal3bv", [(Pointer(Const(GLbyte)), "v")]),
85 DllFunction(Void, "glNormal3d", [(GLdouble, "nx"), (GLdouble, "ny"), (GLdouble, "nz")]),
86 DllFunction(Void, "glNormal3dv", [(Pointer(Const(GLdouble)), "v")]),
87 DllFunction(Void, "glNormal3f", [(GLfloat, "nx"), (GLfloat, "ny"), (GLfloat, "nz")]),
88 DllFunction(Void, "glNormal3fv", [(Pointer(Const(GLfloat)), "v")]),
89 DllFunction(Void, "glNormal3i", [(GLint, "nx"), (GLint, "ny"), (GLint, "nz")]),
90 DllFunction(Void, "glNormal3iv", [(Pointer(Const(GLint)), "v")]),
91 DllFunction(Void, "glNormal3s", [(GLshort, "nx"), (GLshort, "ny"), (GLshort, "nz")]),
92 DllFunction(Void, "glNormal3sv", [(Pointer(Const(GLshort)), "v")]),
93 DllFunction(Void, "glRasterPos2d", [(GLdouble, "x"), (GLdouble, "y")]),
94 DllFunction(Void, "glRasterPos2dv", [(Pointer(Const(GLdouble)), "v")]),
95 DllFunction(Void, "glRasterPos2f", [(GLfloat, "x"), (GLfloat, "y")]),
96 DllFunction(Void, "glRasterPos2fv", [(Pointer(Const(GLfloat)), "v")]),
97 DllFunction(Void, "glRasterPos2i", [(GLint, "x"), (GLint, "y")]),
98 DllFunction(Void, "glRasterPos2iv", [(Pointer(Const(GLint)), "v")]),
99 DllFunction(Void, "glRasterPos2s", [(GLshort, "x"), (GLshort, "y")]),
100 DllFunction(Void, "glRasterPos2sv", [(Pointer(Const(GLshort)), "v")]),
101 DllFunction(Void, "glRasterPos3d", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
102 DllFunction(Void, "glRasterPos3dv", [(Pointer(Const(GLdouble)), "v")]),
103 DllFunction(Void, "glRasterPos3f", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
104 DllFunction(Void, "glRasterPos3fv", [(Pointer(Const(GLfloat)), "v")]),
105 DllFunction(Void, "glRasterPos3i", [(GLint, "x"), (GLint, "y"), (GLint, "z")]),
106 DllFunction(Void, "glRasterPos3iv", [(Pointer(Const(GLint)), "v")]),
107 DllFunction(Void, "glRasterPos3s", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
108 DllFunction(Void, "glRasterPos3sv", [(Pointer(Const(GLshort)), "v")]),
109 DllFunction(Void, "glRasterPos4d", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
110 DllFunction(Void, "glRasterPos4dv", [(Pointer(Const(GLdouble)), "v")]),
111 DllFunction(Void, "glRasterPos4f", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
112 DllFunction(Void, "glRasterPos4fv", [(Pointer(Const(GLfloat)), "v")]),
113 DllFunction(Void, "glRasterPos4i", [(GLint, "x"), (GLint, "y"), (GLint, "z"), (GLint, "w")]),
114 DllFunction(Void, "glRasterPos4iv", [(Pointer(Const(GLint)), "v")]),
115 DllFunction(Void, "glRasterPos4s", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z"), (GLshort, "w")]),
116 DllFunction(Void, "glRasterPos4sv", [(Pointer(Const(GLshort)), "v")]),
117 DllFunction(Void, "glRectd", [(GLdouble, "x1"), (GLdouble, "y1"), (GLdouble, "x2"), (GLdouble, "y2")]),
118 DllFunction(Void, "glRectdv", [(Pointer(Const(GLdouble)), "v1"), (Pointer(Const(GLdouble)), "v2")]),
119 DllFunction(Void, "glRectf", [(GLfloat, "x1"), (GLfloat, "y1"), (GLfloat, "x2"), (GLfloat, "y2")]),
120 DllFunction(Void, "glRectfv", [(Pointer(Const(GLfloat)), "v1"), (Pointer(Const(GLfloat)), "v2")]),
121 DllFunction(Void, "glRecti", [(GLint, "x1"), (GLint, "y1"), (GLint, "x2"), (GLint, "y2")]),
122 DllFunction(Void, "glRectiv", [(Pointer(Const(GLint)), "v1"), (Pointer(Const(GLint)), "v2")]),
123 DllFunction(Void, "glRects", [(GLshort, "x1"), (GLshort, "y1"), (GLshort, "x2"), (GLshort, "y2")]),
124 DllFunction(Void, "glRectsv", [(Pointer(Const(GLshort)), "v1"), (Pointer(Const(GLshort)), "v2")]),
125 DllFunction(Void, "glTexCoord1d", [(GLdouble, "s")]),
126 DllFunction(Void, "glTexCoord1dv", [(Pointer(Const(GLdouble)), "v")]),
127 DllFunction(Void, "glTexCoord1f", [(GLfloat, "s")]),
128 DllFunction(Void, "glTexCoord1fv", [(Pointer(Const(GLfloat)), "v")]),
129 DllFunction(Void, "glTexCoord1i", [(GLint, "s")]),
130 DllFunction(Void, "glTexCoord1iv", [(Pointer(Const(GLint)), "v")]),
131 DllFunction(Void, "glTexCoord1s", [(GLshort, "s")]),
132 DllFunction(Void, "glTexCoord1sv", [(Pointer(Const(GLshort)), "v")]),
133 DllFunction(Void, "glTexCoord2d", [(GLdouble, "s"), (GLdouble, "t")]),
134 DllFunction(Void, "glTexCoord2dv", [(Pointer(Const(GLdouble)), "v")]),
135 DllFunction(Void, "glTexCoord2f", [(GLfloat, "s"), (GLfloat, "t")]),
136 DllFunction(Void, "glTexCoord2fv", [(Pointer(Const(GLfloat)), "v")]),
137 DllFunction(Void, "glTexCoord2i", [(GLint, "s"), (GLint, "t")]),
138 DllFunction(Void, "glTexCoord2iv", [(Pointer(Const(GLint)), "v")]),
139 DllFunction(Void, "glTexCoord2s", [(GLshort, "s"), (GLshort, "t")]),
140 DllFunction(Void, "glTexCoord2sv", [(Pointer(Const(GLshort)), "v")]),
141 DllFunction(Void, "glTexCoord3d", [(GLdouble, "s"), (GLdouble, "t"), (GLdouble, "r")]),
142 DllFunction(Void, "glTexCoord3dv", [(Pointer(Const(GLdouble)), "v")]),
143 DllFunction(Void, "glTexCoord3f", [(GLfloat, "s"), (GLfloat, "t"), (GLfloat, "r")]),
144 DllFunction(Void, "glTexCoord3fv", [(Pointer(Const(GLfloat)), "v")]),
145 DllFunction(Void, "glTexCoord3i", [(GLint, "s"), (GLint, "t"), (GLint, "r")]),
146 DllFunction(Void, "glTexCoord3iv", [(Pointer(Const(GLint)), "v")]),
147 DllFunction(Void, "glTexCoord3s", [(GLshort, "s"), (GLshort, "t"), (GLshort, "r")]),
148 DllFunction(Void, "glTexCoord3sv", [(Pointer(Const(GLshort)), "v")]),
149 DllFunction(Void, "glTexCoord4d", [(GLdouble, "s"), (GLdouble, "t"), (GLdouble, "r"), (GLdouble, "q")]),
150 DllFunction(Void, "glTexCoord4dv", [(Pointer(Const(GLdouble)), "v")]),
151 DllFunction(Void, "glTexCoord4f", [(GLfloat, "s"), (GLfloat, "t"), (GLfloat, "r"), (GLfloat, "q")]),
152 DllFunction(Void, "glTexCoord4fv", [(Pointer(Const(GLfloat)), "v")]),
153 DllFunction(Void, "glTexCoord4i", [(GLint, "s"), (GLint, "t"), (GLint, "r"), (GLint, "q")]),
154 DllFunction(Void, "glTexCoord4iv", [(Pointer(Const(GLint)), "v")]),
155 DllFunction(Void, "glTexCoord4s", [(GLshort, "s"), (GLshort, "t"), (GLshort, "r"), (GLshort, "q")]),
156 DllFunction(Void, "glTexCoord4sv", [(Pointer(Const(GLshort)), "v")]),
157 DllFunction(Void, "glVertex2d", [(GLdouble, "x"), (GLdouble, "y")]),
158 DllFunction(Void, "glVertex2dv", [(Pointer(Const(GLdouble)), "v")]),
159 DllFunction(Void, "glVertex2f", [(GLfloat, "x"), (GLfloat, "y")]),
160 DllFunction(Void, "glVertex2fv", [(Pointer(Const(GLfloat)), "v")]),
161 DllFunction(Void, "glVertex2i", [(GLint, "x"), (GLint, "y")]),
162 DllFunction(Void, "glVertex2iv", [(Pointer(Const(GLint)), "v")]),
163 DllFunction(Void, "glVertex2s", [(GLshort, "x"), (GLshort, "y")]),
164 DllFunction(Void, "glVertex2sv", [(Pointer(Const(GLshort)), "v")]),
165 DllFunction(Void, "glVertex3d", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
166 DllFunction(Void, "glVertex3dv", [(Pointer(Const(GLdouble)), "v")]),
167 DllFunction(Void, "glVertex3f", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
168 DllFunction(Void, "glVertex3fv", [(Pointer(Const(GLfloat)), "v")]),
169 DllFunction(Void, "glVertex3i", [(GLint, "x"), (GLint, "y"), (GLint, "z")]),
170 DllFunction(Void, "glVertex3iv", [(Pointer(Const(GLint)), "v")]),
171 DllFunction(Void, "glVertex3s", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
172 DllFunction(Void, "glVertex3sv", [(Pointer(Const(GLshort)), "v")]),
173 DllFunction(Void, "glVertex4d", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
174 DllFunction(Void, "glVertex4dv", [(Pointer(Const(GLdouble)), "v")]),
175 DllFunction(Void, "glVertex4f", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
176 DllFunction(Void, "glVertex4fv", [(Pointer(Const(GLfloat)), "v")]),
177 DllFunction(Void, "glVertex4i", [(GLint, "x"), (GLint, "y"), (GLint, "z"), (GLint, "w")]),
178 DllFunction(Void, "glVertex4iv", [(Pointer(Const(GLint)), "v")]),
179 DllFunction(Void, "glVertex4s", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z"), (GLshort, "w")]),
180 DllFunction(Void, "glVertex4sv", [(Pointer(Const(GLshort)), "v")]),
181 DllFunction(Void, "glClipPlane", [(GLenum, "plane"), (Pointer(Const(GLdouble)), "equation")]),
182 DllFunction(Void, "glColorMaterial", [(GLenum, "face"), (GLenum, "mode")]),
183 DllFunction(Void, "glCullFace", [(GLenum, "mode")]),
184 DllFunction(Void, "glFogf", [(GLenum, "pname"), (GLfloat, "param")]),
185 DllFunction(Void, "glFogfv", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
186 DllFunction(Void, "glFogi", [(GLenum, "pname"), (GLint, "param")]),
187 DllFunction(Void, "glFogiv", [(GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
188 DllFunction(Void, "glFrontFace", [(GLenum, "mode")]),
189 DllFunction(Void, "glHint", [(GLenum, "target"), (GLenum, "mode")]),
190 DllFunction(Void, "glLightf", [(GLenum, "light"), (GLenum, "pname"), (GLfloat, "param")]),
191 DllFunction(Void, "glLightfv", [(GLenum, "light"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
192 DllFunction(Void, "glLighti", [(GLenum, "light"), (GLenum, "pname"), (GLint, "param")]),
193 DllFunction(Void, "glLightiv", [(GLenum, "light"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
194 DllFunction(Void, "glLightModelf", [(GLenum, "pname"), (GLfloat, "param")]),
195 DllFunction(Void, "glLightModelfv", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
196 DllFunction(Void, "glLightModeli", [(GLenum, "pname"), (GLint, "param")]),
197 DllFunction(Void, "glLightModeliv", [(GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
198 DllFunction(Void, "glLineStipple", [(GLint, "factor"), (GLushort, "pattern")]),
199 DllFunction(Void, "glLineWidth", [(GLfloat, "width")]),
200 DllFunction(Void, "glMaterialf", [(GLenum, "face"), (GLenum, "pname"), (GLfloat, "param")]),
201 DllFunction(Void, "glMaterialfv", [(GLenum, "face"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
202 DllFunction(Void, "glMateriali", [(GLenum, "face"), (GLenum, "pname"), (GLint, "param")]),
203 DllFunction(Void, "glMaterialiv", [(GLenum, "face"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
204 DllFunction(Void, "glPointSize", [(GLfloat, "size")]),
205 DllFunction(Void, "glPolygonMode", [(GLenum, "face"), (GLenum, "mode")]),
206 DllFunction(Void, "glPolygonStipple", [(Pointer(Const(GLubyte)), "mask")]),
207 DllFunction(Void, "glScissor", [(GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
208 DllFunction(Void, "glShadeModel", [(GLenum, "mode")]),
209 DllFunction(Void, "glTexParameterf", [(GLenum, "target"), (GLenum, "pname"), (GLfloat, "param")]),
210 DllFunction(Void, "glTexParameterfv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
211 DllFunction(Void, "glTexParameteri", [(GLenum, "target"), (GLenum, "pname"), (GLint, "param")]),
212 DllFunction(Void, "glTexParameteriv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
213 DllFunction(Void, "glTexImage1D", [(GLenum, "target"), (GLint, "level"), (GLint, "internalformat"), (GLsizei, "width"), (GLint, "border"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
214 DllFunction(Void, "glTexImage2D", [(GLenum, "target"), (GLint, "level"), (GLint, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLint, "border"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
215 DllFunction(Void, "glTexEnvf", [(GLenum, "target"), (GLenum, "pname"), (GLfloat, "param")]),
216 DllFunction(Void, "glTexEnvfv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
217 DllFunction(Void, "glTexEnvi", [(GLenum, "target"), (GLenum, "pname"), (GLint, "param")]),
218 DllFunction(Void, "glTexEnviv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
219 DllFunction(Void, "glTexGend", [(GLenum, "coord"), (GLenum, "pname"), (GLdouble, "param")]),
220 DllFunction(Void, "glTexGendv", [(GLenum, "coord"), (GLenum, "pname"), (Pointer(Const(GLdouble)), "params")]),
221 DllFunction(Void, "glTexGenf", [(GLenum, "coord"), (GLenum, "pname"), (GLfloat, "param")]),
222 DllFunction(Void, "glTexGenfv", [(GLenum, "coord"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
223 DllFunction(Void, "glTexGeni", [(GLenum, "coord"), (GLenum, "pname"), (GLint, "param")]),
224 DllFunction(Void, "glTexGeniv", [(GLenum, "coord"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
225 DllFunction(Void, "glFeedbackBuffer", [(GLsizei, "size"), (GLenum, "type"), (OutPointer(GLfloat), "buffer")]),
226 DllFunction(Void, "glSelectBuffer", [(GLsizei, "size"), (OutPointer(GLuint), "buffer")]),
227 DllFunction(GLint, "glRenderMode", [(GLenum, "mode")]),
228 DllFunction(Void, "glInitNames", []),
229 DllFunction(Void, "glLoadName", [(GLuint, "name")]),
230 DllFunction(Void, "glPassThrough", [(GLfloat, "token")]),
231 DllFunction(Void, "glPopName", []),
232 DllFunction(Void, "glPushName", [(GLuint, "name")]),
233 DllFunction(Void, "glDrawBuffer", [(GLenum, "mode")]),
234 DllFunction(Void, "glClear", [(GLbufferbitfield, "mask")]),
235 DllFunction(Void, "glClearAccum", [(GLfloat, "red"), (GLfloat, "green"), (GLfloat, "blue"), (GLfloat, "alpha")]),
236 DllFunction(Void, "glClearIndex", [(GLfloat, "c")]),
237 DllFunction(Void, "glClearColor", [(GLclampf, "red"), (GLclampf, "green"), (GLclampf, "blue"), (GLclampf, "alpha")]),
238 DllFunction(Void, "glClearStencil", [(GLint, "s")]),
239 DllFunction(Void, "glClearDepth", [(GLclampd, "depth")]),
240 DllFunction(Void, "glStencilMask", [(GLuint, "mask")]),
241 DllFunction(Void, "glColorMask", [(GLboolean, "red"), (GLboolean, "green"), (GLboolean, "blue"), (GLboolean, "alpha")]),
242 DllFunction(Void, "glDepthMask", [(GLboolean, "flag")]),
243 DllFunction(Void, "glIndexMask", [(GLuint, "mask")]),
244 DllFunction(Void, "glAccum", [(GLenum, "op"), (GLfloat, "value")]),
245 DllFunction(Void, "glDisable", [(GLenum, "cap")]),
246 DllFunction(Void, "glEnable", [(GLenum, "cap")]),
247 DllFunction(Void, "glFinish", []),
248 DllFunction(Void, "glFlush", []),
249 DllFunction(Void, "glPopAttrib", []),
250 DllFunction(Void, "glPushAttrib", [(GLbitfield, "mask")]),
251 DllFunction(Void, "glMap1d", [(GLenum, "target"), (GLdouble, "u1"), (GLdouble, "u2"), (GLint, "stride"), (GLint, "order"), (Pointer(Const(GLdouble)), "points")]),
252 DllFunction(Void, "glMap1f", [(GLenum, "target"), (GLfloat, "u1"), (GLfloat, "u2"), (GLint, "stride"), (GLint, "order"), (Pointer(Const(GLfloat)), "points")]),
253 DllFunction(Void, "glMap2d", [(GLenum, "target"), (GLdouble, "u1"), (GLdouble, "u2"), (GLint, "ustride"), (GLint, "uorder"), (GLdouble, "v1"), (GLdouble, "v2"), (GLint, "vstride"), (GLint, "vorder"), (Pointer(Const(GLdouble)), "points")]),
254 DllFunction(Void, "glMap2f", [(GLenum, "target"), (GLfloat, "u1"), (GLfloat, "u2"), (GLint, "ustride"), (GLint, "uorder"), (GLfloat, "v1"), (GLfloat, "v2"), (GLint, "vstride"), (GLint, "vorder"), (Pointer(Const(GLfloat)), "points")]),
255 DllFunction(Void, "glMapGrid1d", [(GLint, "un"), (GLdouble, "u1"), (GLdouble, "u2")]),
256 DllFunction(Void, "glMapGrid1f", [(GLint, "un"), (GLfloat, "u1"), (GLfloat, "u2")]),
257 DllFunction(Void, "glMapGrid2d", [(GLint, "un"), (GLdouble, "u1"), (GLdouble, "u2"), (GLint, "vn"), (GLdouble, "v1"), (GLdouble, "v2")]),
258 DllFunction(Void, "glMapGrid2f", [(GLint, "un"), (GLfloat, "u1"), (GLfloat, "u2"), (GLint, "vn"), (GLfloat, "v1"), (GLfloat, "v2")]),
259 DllFunction(Void, "glEvalCoord1d", [(GLdouble, "u")]),
260 DllFunction(Void, "glEvalCoord1dv", [(Pointer(Const(GLdouble)), "u")]),
261 DllFunction(Void, "glEvalCoord1f", [(GLfloat, "u")]),
262 DllFunction(Void, "glEvalCoord1fv", [(Pointer(Const(GLfloat)), "u")]),
263 DllFunction(Void, "glEvalCoord2d", [(GLdouble, "u"), (GLdouble, "v")]),
264 DllFunction(Void, "glEvalCoord2dv", [(Pointer(Const(GLdouble)), "u")]),
265 DllFunction(Void, "glEvalCoord2f", [(GLfloat, "u"), (GLfloat, "v")]),
266 DllFunction(Void, "glEvalCoord2fv", [(Pointer(Const(GLfloat)), "u")]),
267 DllFunction(Void, "glEvalMesh1", [(GLenum, "mode"), (GLint, "i1"), (GLint, "i2")]),
268 DllFunction(Void, "glEvalPoint1", [(GLint, "i")]),
269 DllFunction(Void, "glEvalMesh2", [(GLenum, "mode"), (GLint, "i1"), (GLint, "i2"), (GLint, "j1"), (GLint, "j2")]),
270 DllFunction(Void, "glEvalPoint2", [(GLint, "i"), (GLint, "j")]),
271 DllFunction(Void, "glAlphaFunc", [(GLenum, "func"), (GLclampf, "ref")]),
272 DllFunction(Void, "glBlendFunc", [(GLenum, "sfactor"), (GLenum, "dfactor")]),
273 DllFunction(Void, "glLogicOp", [(GLenum, "opcode")]),
274 DllFunction(Void, "glStencilFunc", [(GLenum, "func"), (GLint, "ref"), (GLuint, "mask")]),
275 DllFunction(Void, "glStencilOp", [(GLenum, "fail"), (GLenum, "zfail"), (GLenum, "zpass")]),
276 DllFunction(Void, "glDepthFunc", [(GLenum, "func")]),
277 DllFunction(Void, "glPixelZoom", [(GLfloat, "xfactor"), (GLfloat, "yfactor")]),
278 DllFunction(Void, "glPixelTransferf", [(GLenum, "pname"), (GLfloat, "param")]),
279 DllFunction(Void, "glPixelTransferi", [(GLenum, "pname"), (GLint, "param")]),
280 DllFunction(Void, "glPixelStoref", [(GLenum, "pname"), (GLfloat, "param")]),
281 DllFunction(Void, "glPixelStorei", [(GLenum, "pname"), (GLint, "param")]),
282 DllFunction(Void, "glPixelMapfv", [(GLenum, "map"), (GLsizei, "mapsize"), (Pointer(Const(GLfloat)), "values")]),
283 DllFunction(Void, "glPixelMapuiv", [(GLenum, "map"), (GLsizei, "mapsize"), (Pointer(Const(GLuint)), "values")]),
284 DllFunction(Void, "glPixelMapusv", [(GLenum, "map"), (GLsizei, "mapsize"), (Pointer(Const(GLushort)), "values")]),
285 DllFunction(Void, "glReadBuffer", [(GLenum, "mode")]),
286 DllFunction(Void, "glCopyPixels", [(GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "type")]),
287 DllFunction(Void, "glReadPixels", [(GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLenum, "type"), (OutPointer(GLvoid), "pixels")]),
288 DllFunction(Void, "glDrawPixels", [(GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
289 DllFunction(Void, "glGetBooleanv", [(GLenum, "pname"), (OutPointer(GLboolean), "params")]),
290 DllFunction(Void, "glGetClipPlane", [(GLenum, "plane"), (OutPointer(GLdouble), "equation")]),
291 DllFunction(Void, "glGetDoublev", [(GLenum, "pname"), (OutPointer(GLdouble), "params")]),
292 DllFunction(GLenum, "glGetError", []),
293 DllFunction(Void, "glGetFloatv", [(GLenum, "pname"), (OutPointer(GLfloat), "params")]),
294 DllFunction(Void, "glGetIntegerv", [(GLenum, "pname"), (OutPointer(GLint), "params")]),
295 DllFunction(Void, "glGetLightfv", [(GLenum, "light"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
296 DllFunction(Void, "glGetLightiv", [(GLenum, "light"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
297 DllFunction(Void, "glGetMapdv", [(GLenum, "target"), (GLenum, "query"), (OutPointer(GLdouble), "v")]),
298 DllFunction(Void, "glGetMapfv", [(GLenum, "target"), (GLenum, "query"), (OutPointer(GLfloat), "v")]),
299 DllFunction(Void, "glGetMapiv", [(GLenum, "target"), (GLenum, "query"), (OutPointer(GLint), "v")]),
300 DllFunction(Void, "glGetMaterialfv", [(GLenum, "face"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
301 DllFunction(Void, "glGetMaterialiv", [(GLenum, "face"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
302 DllFunction(Void, "glGetPixelMapfv", [(GLenum, "map"), (OutPointer(GLfloat), "values")]),
303 DllFunction(Void, "glGetPixelMapuiv", [(GLenum, "map"), (OutPointer(GLuint), "values")]),
304 DllFunction(Void, "glGetPixelMapusv", [(GLenum, "map"), (OutPointer(GLushort), "values")]),
305 DllFunction(Void, "glGetPolygonStipple", [(OutPointer(GLubyte), "mask")]),
306 DllFunction(Alias("const GLubyte *", String), "glGetString", [(GLenum, "name")]),
307 DllFunction(Void, "glGetTexEnvfv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
308 DllFunction(Void, "glGetTexEnviv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
309 DllFunction(Void, "glGetTexGendv", [(GLenum, "coord"), (GLenum, "pname"), (OutPointer(GLdouble), "params")]),
310 DllFunction(Void, "glGetTexGenfv", [(GLenum, "coord"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
311 DllFunction(Void, "glGetTexGeniv", [(GLenum, "coord"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
312 DllFunction(Void, "glGetTexImage", [(GLenum, "target"), (GLint, "level"), (GLenum, "format"), (GLenum, "type"), (OutPointer(GLvoid), "pixels")]),
313 DllFunction(Void, "glGetTexParameterfv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
314 DllFunction(Void, "glGetTexParameteriv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
315 DllFunction(Void, "glGetTexLevelParameterfv", [(GLenum, "target"), (GLint, "level"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
316 DllFunction(Void, "glGetTexLevelParameteriv", [(GLenum, "target"), (GLint, "level"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
317 DllFunction(GLboolean, "glIsEnabled", [(GLenum, "cap")]),
318 DllFunction(GLboolean, "glIsList", [(GLuint, "list")]),
319 DllFunction(Void, "glDepthRange", [(GLclampd, "zNear"), (GLclampd, "zFar")]),
320 DllFunction(Void, "glFrustum", [(GLdouble, "left"), (GLdouble, "right"), (GLdouble, "bottom"), (GLdouble, "top"), (GLdouble, "zNear"), (GLdouble, "zFar")]),
321 DllFunction(Void, "glLoadIdentity", []),
322 DllFunction(Void, "glLoadMatrixf", [(Pointer(Const(GLfloat)), "m")]),
323 DllFunction(Void, "glLoadMatrixd", [(Pointer(Const(GLdouble)), "m")]),
324 DllFunction(Void, "glMatrixMode", [(GLenum, "mode")]),
325 DllFunction(Void, "glMultMatrixf", [(Pointer(Const(GLfloat)), "m")]),
326 DllFunction(Void, "glMultMatrixd", [(Pointer(Const(GLdouble)), "m")]),
327 DllFunction(Void, "glOrtho", [(GLdouble, "left"), (GLdouble, "right"), (GLdouble, "bottom"), (GLdouble, "top"), (GLdouble, "zNear"), (GLdouble, "zFar")]),
328 DllFunction(Void, "glPopMatrix", []),
329 DllFunction(Void, "glPushMatrix", []),
330 DllFunction(Void, "glRotated", [(GLdouble, "angle"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
331 DllFunction(Void, "glRotatef", [(GLfloat, "angle"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
332 DllFunction(Void, "glScaled", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
333 DllFunction(Void, "glScalef", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
334 DllFunction(Void, "glTranslated", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
335 DllFunction(Void, "glTranslatef", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
336 DllFunction(Void, "glViewport", [(GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
337 DllFunction(Void, "glArrayElement", [(GLint, "i")]),
338 DllFunction(Void, "glBindTexture", [(GLenum, "target"), (GLuint, "texture")]),
339 DllFunction(Void, "glColorPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
340 DllFunction(Void, "glDisableClientState", [(GLenum, "array")]),
341 DllFunction(Void, "glDrawArrays", [(GLenum, "mode"), (GLint, "first"), (GLsizei, "count")]),
342 DllFunction(Void, "glDrawElements", [(GLenum, "mode"), (GLsizei, "count"), (GLenum, "type"), (Pointer(Const(GLvoid)), "indices")]),
343 DllFunction(Void, "glEdgeFlagPointer", [(GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
344 DllFunction(Void, "glEnableClientState", [(GLenum, "array")]),
345 DllFunction(Void, "glIndexPointer", [(GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
346 DllFunction(Void, "glIndexub", [(GLubyte, "c")]),
347 DllFunction(Void, "glIndexubv", [(Pointer(Const(GLubyte)), "c")]),
348 DllFunction(Void, "glInterleavedArrays", [(GLenum, "format"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
349 DllFunction(Void, "glNormalPointer", [(GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
350 DllFunction(Void, "glPolygonOffset", [(GLfloat, "factor"), (GLfloat, "units")]),
351 DllFunction(Void, "glTexCoordPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
352 DllFunction(Void, "glVertexPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
353 DllFunction(GLboolean, "glAreTexturesResident", [(GLsizei, "n"), (Pointer(Const(GLuint)), "textures"), (OutPointer(GLboolean), "residences")]),
354 DllFunction(Void, "glCopyTexImage1D", [(GLenum, "target"), (GLint, "level"), (GLenum, "internalformat"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLint, "border")]),
355 DllFunction(Void, "glCopyTexImage2D", [(GLenum, "target"), (GLint, "level"), (GLenum, "internalformat"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height"), (GLint, "border")]),
356 DllFunction(Void, "glCopyTexSubImage1D", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "x"), (GLint, "y"), (GLsizei, "width")]),
357 DllFunction(Void, "glCopyTexSubImage2D", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
358 DllFunction(Void, "glDeleteTextures", [(GLsizei, "n"), (Pointer(Const(GLuint)), "textures")]),
359 DllFunction(Void, "glGenTextures", [(GLsizei, "n"), (OutPointer(GLuint), "textures")]),
360 DllFunction(Void, "glGetPointerv", [(GLenum, "pname"), (OutPointer(Pointer(GLvoid)), "params")]),
361 DllFunction(GLboolean, "glIsTexture", [(GLuint, "texture")]),
362 DllFunction(Void, "glPrioritizeTextures", [(GLsizei, "n"), (Pointer(Const(GLuint)), "textures"), (Pointer(Const(GLclampf)), "priorities")]),
363 DllFunction(Void, "glTexSubImage1D", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLsizei, "width"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
364 DllFunction(Void, "glTexSubImage2D", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
365 DllFunction(Void, "glPopClientAttrib", []),
366 DllFunction(Void, "glPushClientAttrib", [(GLbitfield, "mask")]),
367 DllFunction(Void, "glBlendColor", [(GLclampf, "red"), (GLclampf, "green"), (GLclampf, "blue"), (GLclampf, "alpha")]),
368 DllFunction(Void, "glBlendEquation", [(GLenum, "mode")]),
369 DllFunction(Void, "glDrawRangeElements", [(GLenum, "mode"), (GLuint, "start"), (GLuint, "end"), (GLsizei, "count"), (GLenum, "type"), (Pointer(Const(GLvoid)), "indices")]),
370 DllFunction(Void, "glColorTable", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "table")]),
371 DllFunction(Void, "glColorTableParameterfv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
372 DllFunction(Void, "glColorTableParameteriv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
373 DllFunction(Void, "glCopyColorTable", [(GLenum, "target"), (GLenum, "internalformat"), (GLint, "x"), (GLint, "y"), (GLsizei, "width")]),
374 DllFunction(Void, "glGetColorTable", [(GLenum, "target"), (GLenum, "format"), (GLenum, "type"), (Pointer(GLvoid), "table")]),
375 DllFunction(Void, "glGetColorTableParameterfv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
376 DllFunction(Void, "glGetColorTableParameteriv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
377 DllFunction(Void, "glColorSubTable", [(GLenum, "target"), (GLsizei, "start"), (GLsizei, "count"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "data")]),
378 DllFunction(Void, "glCopyColorSubTable", [(GLenum, "target"), (GLsizei, "start"), (GLint, "x"), (GLint, "y"), (GLsizei, "width")]),
379 DllFunction(Void, "glConvolutionFilter1D", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "image")]),
380 DllFunction(Void, "glConvolutionFilter2D", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "image")]),
381 DllFunction(Void, "glConvolutionParameterf", [(GLenum, "target"), (GLenum, "pname"), (GLfloat, "params")]),
382 DllFunction(Void, "glConvolutionParameterfv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
383 DllFunction(Void, "glConvolutionParameteri", [(GLenum, "target"), (GLenum, "pname"), (GLint, "params")]),
384 DllFunction(Void, "glConvolutionParameteriv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
385 DllFunction(Void, "glCopyConvolutionFilter1D", [(GLenum, "target"), (GLenum, "internalformat"), (GLint, "x"), (GLint, "y"), (GLsizei, "width")]),
386 DllFunction(Void, "glCopyConvolutionFilter2D", [(GLenum, "target"), (GLenum, "internalformat"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
387 DllFunction(Void, "glGetConvolutionFilter", [(GLenum, "target"), (GLenum, "format"), (GLenum, "type"), (Pointer(GLvoid), "image")]),
388 DllFunction(Void, "glGetConvolutionParameterfv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
389 DllFunction(Void, "glGetConvolutionParameteriv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
390 DllFunction(Void, "glGetSeparableFilter", [(GLenum, "target"), (GLenum, "format"), (GLenum, "type"), (Pointer(GLvoid), "row"), (Pointer(GLvoid), "column"), (Pointer(GLvoid), "span")]),
391 DllFunction(Void, "glSeparableFilter2D", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "row"), (Pointer(Const(GLvoid)), "column")]),
392 DllFunction(Void, "glGetHistogram", [(GLenum, "target"), (GLboolean, "reset"), (GLenum, "format"), (GLenum, "type"), (Pointer(GLvoid), "values")]),
393 DllFunction(Void, "glGetHistogramParameterfv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
394 DllFunction(Void, "glGetHistogramParameteriv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
395 DllFunction(Void, "glGetMinmax", [(GLenum, "target"), (GLboolean, "reset"), (GLenum, "format"), (GLenum, "type"), (Pointer(GLvoid), "values")]),
396 DllFunction(Void, "glGetMinmaxParameterfv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLfloat), "params")]),
397 DllFunction(Void, "glGetMinmaxParameteriv", [(GLenum, "target"), (GLenum, "pname"), (OutPointer(GLint), "params")]),
398 DllFunction(Void, "glHistogram", [(GLenum, "target"), (GLsizei, "width"), (GLenum, "internalformat"), (GLboolean, "sink")]),
399 DllFunction(Void, "glMinmax", [(GLenum, "target"), (GLenum, "internalformat"), (GLboolean, "sink")]),
400 DllFunction(Void, "glResetHistogram", [(GLenum, "target")]),
401 DllFunction(Void, "glResetMinmax", [(GLenum, "target")]),
402 DllFunction(Void, "glTexImage3D", [(GLenum, "target"), (GLint, "level"), (GLint, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth"), (GLint, "border"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
403 DllFunction(Void, "glTexSubImage3D", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLint, "zoffset"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth"), (GLenum, "format"), (GLenum, "type"), (Pointer(Const(GLvoid)), "pixels")]),
404 DllFunction(Void, "glCopyTexSubImage3D", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLint, "zoffset"), (GLint, "x"), (GLint, "y"), (GLsizei, "width"), (GLsizei, "height")]),
405 DllFunction(Void, "glActiveTextureARB", [(GLenum, "texture")]),
406 DllFunction(Void, "glClientActiveTextureARB", [(GLenum, "texture")]),
407 DllFunction(Void, "glMultiTexCoord1dARB", [(GLenum, "target"), (GLdouble, "s")]),
408 DllFunction(Void, "glMultiTexCoord1dvARB", [(GLenum, "target"), (Pointer(Const(GLdouble)), "v")]),
409 DllFunction(Void, "glMultiTexCoord1fARB", [(GLenum, "target"), (GLfloat, "s")]),
410 DllFunction(Void, "glMultiTexCoord1fvARB", [(GLenum, "target"), (Pointer(Const(GLfloat)), "v")]),
411 DllFunction(Void, "glMultiTexCoord1iARB", [(GLenum, "target"), (GLint, "s")]),
412 DllFunction(Void, "glMultiTexCoord1ivARB", [(GLenum, "target"), (Pointer(Const(GLint)), "v")]),
413 DllFunction(Void, "glMultiTexCoord1sARB", [(GLenum, "target"), (GLshort, "s")]),
414 DllFunction(Void, "glMultiTexCoord1svARB", [(GLenum, "target"), (Pointer(Const(GLshort)), "v")]),
415 DllFunction(Void, "glMultiTexCoord2dARB", [(GLenum, "target"), (GLdouble, "s"), (GLdouble, "t")]),
416 DllFunction(Void, "glMultiTexCoord2dvARB", [(GLenum, "target"), (Pointer(Const(GLdouble)), "v")]),
417 DllFunction(Void, "glMultiTexCoord2fARB", [(GLenum, "target"), (GLfloat, "s"), (GLfloat, "t")]),
418 DllFunction(Void, "glMultiTexCoord2fvARB", [(GLenum, "target"), (Pointer(Const(GLfloat)), "v")]),
419 DllFunction(Void, "glMultiTexCoord2iARB", [(GLenum, "target"), (GLint, "s"), (GLint, "t")]),
420 DllFunction(Void, "glMultiTexCoord2ivARB", [(GLenum, "target"), (Pointer(Const(GLint)), "v")]),
421 DllFunction(Void, "glMultiTexCoord2sARB", [(GLenum, "target"), (GLshort, "s"), (GLshort, "t")]),
422 DllFunction(Void, "glMultiTexCoord2svARB", [(GLenum, "target"), (Pointer(Const(GLshort)), "v")]),
423 DllFunction(Void, "glMultiTexCoord3dARB", [(GLenum, "target"), (GLdouble, "s"), (GLdouble, "t"), (GLdouble, "r")]),
424 DllFunction(Void, "glMultiTexCoord3dvARB", [(GLenum, "target"), (Pointer(Const(GLdouble)), "v")]),
425 DllFunction(Void, "glMultiTexCoord3fARB", [(GLenum, "target"), (GLfloat, "s"), (GLfloat, "t"), (GLfloat, "r")]),
426 DllFunction(Void, "glMultiTexCoord3fvARB", [(GLenum, "target"), (Pointer(Const(GLfloat)), "v")]),
427 DllFunction(Void, "glMultiTexCoord3iARB", [(GLenum, "target"), (GLint, "s"), (GLint, "t"), (GLint, "r")]),
428 DllFunction(Void, "glMultiTexCoord3ivARB", [(GLenum, "target"), (Pointer(Const(GLint)), "v")]),
429 DllFunction(Void, "glMultiTexCoord3sARB", [(GLenum, "target"), (GLshort, "s"), (GLshort, "t"), (GLshort, "r")]),
430 DllFunction(Void, "glMultiTexCoord3svARB", [(GLenum, "target"), (Pointer(Const(GLshort)), "v")]),
431 DllFunction(Void, "glMultiTexCoord4dARB", [(GLenum, "target"), (GLdouble, "s"), (GLdouble, "t"), (GLdouble, "r"), (GLdouble, "q")]),
432 DllFunction(Void, "glMultiTexCoord4dvARB", [(GLenum, "target"), (Pointer(Const(GLdouble)), "v")]),
433 DllFunction(Void, "glMultiTexCoord4fARB", [(GLenum, "target"), (GLfloat, "s"), (GLfloat, "t"), (GLfloat, "r"), (GLfloat, "q")]),
434 DllFunction(Void, "glMultiTexCoord4fvARB", [(GLenum, "target"), (Pointer(Const(GLfloat)), "v")]),
435 DllFunction(Void, "glMultiTexCoord4iARB", [(GLenum, "target"), (GLint, "s"), (GLint, "t"), (GLint, "r"), (GLint, "q")]),
436 DllFunction(Void, "glMultiTexCoord4ivARB", [(GLenum, "target"), (Pointer(Const(GLint)), "v")]),
437 DllFunction(Void, "glMultiTexCoord4sARB", [(GLenum, "target"), (GLshort, "s"), (GLshort, "t"), (GLshort, "r"), (GLshort, "q")]),
438 DllFunction(Void, "glMultiTexCoord4svARB", [(GLenum, "target"), (Pointer(Const(GLshort)), "v")]),
441 HGLRC = Alias("HGLRC", HANDLE)
442 PROC = Intrinsic("PROC", "%p")
447 "PFD_DRAW_TO_WINDOW",
448 "PFD_DRAW_TO_BITMAP",
450 "PFD_SUPPORT_OPENGL",
451 "PFD_GENERIC_FORMAT",
453 "PFD_NEED_SYSTEM_PALETTE",
456 "PFD_SWAP_LAYER_BUFFERS",
457 "PFD_GENERIC_ACCELERATED",
458 #"PFD_SUPPORT_DIRECTDRAW",
461 PIXELFORMATDESCRIPTOR = Struct("PIXELFORMATDESCRIPTOR", [
465 (BYTE, "iPixelType"),
466 (BYTE, "cColorBits"),
469 (BYTE, "cGreenBits"),
470 (BYTE, "cGreenShift"),
472 (BYTE, "cBlueShift"),
473 (BYTE, "cAlphaBits"),
474 (BYTE, "cAlphaShift"),
475 (BYTE, "cAccumBits"),
476 (BYTE, "cAccumRedBits"),
477 (BYTE, "cAccumGreenBits"),
478 (BYTE, "cAccumBlueBits"),
479 (BYTE, "cAccumAlphaBits"),
480 (BYTE, "cDepthBits"),
481 (BYTE, "cStencilBits"),
482 (BYTE, "cAuxBuffers"),
483 (BYTE, "iLayerType"),
485 (DWORD, "dwLayerMask"),
486 (DWORD, "dwVisibleMask"),
487 (DWORD, "dwDamageMask"),
490 POINTFLOAT = Struct("POINTFLOAT", [
495 GLYPHMETRICSFLOAT = Struct("GLYPHMETRICSFLOAT", [
496 (FLOAT, "gmfBlackBoxX"),
497 (FLOAT, "gmfBlackBoxY"),
498 (POINTFLOAT, "gmfptGlyphOrigin"),
499 (FLOAT, "gmfCellIncX"),
500 (FLOAT, "gmfCellIncY"),
502 LPGLYPHMETRICSFLOAT = Pointer(GLYPHMETRICSFLOAT)
504 COLORREF = Alias("COLORREF", DWORD)
507 LAYERPLANEDESCRIPTOR = Struct("LAYERPLANEDESCRIPTOR", [
511 (BYTE, "iPixelType"),
512 (BYTE, "cColorBits"),
515 (BYTE, "cGreenBits"),
516 (BYTE, "cGreenShift"),
518 (BYTE, "cBlueShift"),
519 (BYTE, "cAlphaBits"),
520 (BYTE, "cAlphaShift"),
521 (BYTE, "cAccumBits"),
522 (BYTE, "cAccumRedBits"),
523 (BYTE, "cAccumGreenBits"),
524 (BYTE, "cAccumBlueBits"),
525 (BYTE, "cAccumAlphaBits"),
526 (BYTE, "cDepthBits"),
527 (BYTE, "cStencilBits"),
528 (BYTE, "cAuxBuffers"),
529 (BYTE, "iLayerPlane"),
531 (COLORREF, "crTransparent"),
533 LPLAYERPLANEDESCRIPTOR = Pointer(LAYERPLANEDESCRIPTOR)
535 opengl32.functions += [
536 DllFunction(BOOL, "wglCopyContext", [(HGLRC, "hglrcSrc"), (HGLRC, "hglrcDst"), (UINT, "mask")]),
537 DllFunction(HGLRC, "wglCreateContext", [(HDC, "hdc")]),
538 DllFunction(HGLRC, "wglCreateLayerContext", [(HDC, "hdc"), (Int, "iLayerPlane")]),
539 DllFunction(BOOL, "wglDeleteContext", [(HGLRC, "hglrc")]),
540 DllFunction(HGLRC, "wglGetCurrentContext", []),
541 DllFunction(HDC, "wglGetCurrentDC", []),
542 DllFunction(PROC, "wglGetDefaultProcAddress", [(LPCSTR, "lpszProc")]),
543 DllFunction(Int, "wglChoosePixelFormat", [(HDC, "hdc"), (Pointer(Const(PIXELFORMATDESCRIPTOR)), "ppfd")]),
544 DllFunction(Int, "wglDescribePixelFormat", [(HDC, "hdc"), (Int, "iPixelFormat"), (UINT, "nBytes"), (OutPointer(PIXELFORMATDESCRIPTOR), "ppfd")]),
545 DllFunction(Int, "wglGetPixelFormat", [(HDC, "hdc")]),
546 DllFunction(BOOL, "wglSetPixelFormat", [(HDC, "hdc"), (Int, "iPixelFormat"), (Pointer(Const(PIXELFORMATDESCRIPTOR)), "ppfd")]),
547 DllFunction(BOOL, "wglMakeCurrent", [(HDC, "hdc"), (HGLRC, "hglrc")]),
548 DllFunction(BOOL, "wglShareLists", [(HGLRC, "hglrc1"), (HGLRC, "hglrc2")]),
549 DllFunction(BOOL, "wglUseFontBitmapsA", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase")]),
550 DllFunction(BOOL, "wglUseFontBitmapsW", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase")]),
551 DllFunction(BOOL, "wglSwapBuffers", [(HDC, "hdc")]),
552 DllFunction(BOOL, "wglUseFontOutlinesA", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase"), (FLOAT, "deviation"), (FLOAT, "extrusion"), (Int, "format"), (LPGLYPHMETRICSFLOAT, "lpgmf")]),
553 DllFunction(BOOL, "wglUseFontOutlinesW", [(HDC, "hdc"), (DWORD, "first"), (DWORD, "count"), (DWORD, "listBase"), (FLOAT, "deviation"), (FLOAT, "extrusion"), (Int, "format"), (LPGLYPHMETRICSFLOAT, "lpgmf")]),
554 DllFunction(BOOL , "wglDescribeLayerPlane", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nBytes"), (OutPointer(LAYERPLANEDESCRIPTOR), "plpd")]),
555 DllFunction(Int , "wglSetLayerPaletteEntries", [(HDC, "hdc"), (Int, "iLayerPlane"), (Int, "iStart"), (Int, "cEntries"), (Pointer(Const(COLORREF)), "pcr")]),
556 DllFunction(Int , "wglGetLayerPaletteEntries", [(HDC, "hdc"), (Int, "iLayerPlane"), (Int, "iStart"), (Int, "cEntries"), (OutPointer(COLORREF), "pcr")]),
557 DllFunction(BOOL , "wglRealizeLayerPalette", [(HDC, "hdc"), (Int, "iLayerPlane"), (BOOL, "bRealize")]),
558 DllFunction(BOOL , "wglSwapLayerBuffers", [(HDC, "hdc"), (UINT, "fuPlanes")]),
562 WGLSWAP = Struct("WGLSWAP", [
567 opengl32.functions += [
568 DllFunction(DWORD, "wglSwapMultipleBuffers", [(UINT, "n"), (Pointer(Const(WGLSWAP)), "ps")]),
572 class WglGetProcAddressFunction(DllFunction):
574 def __init__(self, type, name, args):
575 DllFunction.__init__(self, type, name, args)
579 for function in self.functions:
581 DllFunction.wrap_decl(self)
584 for function in self.functions:
586 DllFunction.wrap_impl(self)
588 def post_call_impl(self):
589 print ' if(result) {'
590 for function in self.functions:
591 ptype = function.pointer_type()
592 pvalue = function.pointer_value()
593 print ' if(!strcmp("%s", lpszProc)) {' % function.name
594 print ' %s = (%s)result;' % (pvalue, ptype)
595 print ' result = (PROC)&%s;' % function.name;
600 wglgetprocaddress = WglGetProcAddressFunction(PROC, "wglGetProcAddress", [(LPCSTR, "lpszProc")])
601 opengl32.functions.append(wglgetprocaddress)
603 class WglFunction(Function):
605 def get_true_pointer(self):
606 ptype = self.pointer_type()
607 pvalue = self.pointer_value()
608 print ' if(!%s)' % (pvalue,)
611 attribute = FakeEnum(Int, [
612 "WGL_NUMBER_PIXEL_FORMATS_EXT",
613 "WGL_DRAW_TO_WINDOW_EXT",
614 "WGL_DRAW_TO_BITMAP_EXT",
615 "WGL_ACCELERATION_EXT",
616 "WGL_NEED_PALETTE_EXT",
617 "WGL_NEED_SYSTEM_PALETTE_EXT",
618 "WGL_SWAP_LAYER_BUFFERS_EXT",
619 "WGL_SWAP_METHOD_EXT",
620 "WGL_NUMBER_OVERLAYS_EXT",
621 "WGL_NUMBER_UNDERLAYS_EXT",
622 "WGL_TRANSPARENT_EXT",
623 "WGL_TRANSPARENT_VALUE_EXT",
624 "WGL_SHARE_DEPTH_EXT",
625 "WGL_SHARE_STENCIL_EXT",
626 "WGL_SHARE_ACCUM_EXT",
627 "WGL_SUPPORT_GDI_EXT",
628 "WGL_SUPPORT_OPENGL_EXT",
629 "WGL_DOUBLE_BUFFER_EXT",
631 "WGL_PIXEL_TYPE_EXT",
632 "WGL_COLOR_BITS_EXT",
635 "WGL_GREEN_BITS_EXT",
636 "WGL_GREEN_SHIFT_EXT",
638 "WGL_BLUE_SHIFT_EXT",
639 "WGL_ALPHA_BITS_EXT",
640 "WGL_ALPHA_SHIFT_EXT",
641 "WGL_ACCUM_BITS_EXT",
642 "WGL_ACCUM_RED_BITS_EXT",
643 "WGL_ACCUM_GREEN_BITS_EXT",
644 "WGL_ACCUM_BLUE_BITS_EXT",
645 "WGL_ACCUM_ALPHA_BITS_EXT",
646 "WGL_DEPTH_BITS_EXT",
647 "WGL_STENCIL_BITS_EXT",
648 "WGL_AUX_BUFFERS_EXT",
649 "WGL_NO_ACCELERATION_EXT",
650 "WGL_GENERIC_ACCELERATION_EXT",
651 "WGL_FULL_ACCELERATION_EXT",
652 "WGL_SWAP_EXCHANGE_EXT",
654 "WGL_SWAP_UNDEFINED_EXT",
656 "WGL_TYPE_COLORINDEX_EXT",
659 HPBUFFERARB = Alias("HPBUFFERARB", HANDLE)
661 wglgetprocaddress.functions += [
662 WglFunction(Void, "glAttachShader", [(GLuint, "program"), (GLuint, "shader")]),
663 WglFunction(GLuint, "glCreateProgram", []),
664 WglFunction(GLuint, "glCreateShader", [(GLenum, "type")]),
665 WglFunction(Void, "glDeleteProgram", [(GLuint, "program")]),
666 WglFunction(Void, "glDeleteShader", [(GLuint, "program")]),
667 WglFunction(Void, "glDetachShader", [(GLuint, "program"), (GLuint, "shader")]),
668 WglFunction(Void, "glGetAttachedShaders", [(GLuint, "program"), (GLsizei, "maxCount"), (Pointer(GLsizei), "count"), (Pointer(GLuint), "obj")]),
669 WglFunction(Void, "glGetProgramInfoLog", [(GLuint, "program"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLchar), "infoLog")]),
670 WglFunction(Void, "glGetProgramiv", [(GLuint, "program"), (GLenum, "pname"), (Pointer(GLint), "params")]),
671 WglFunction(Void, "glGetShaderInfoLog", [(GLuint, "shader"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLchar), "infoLog")]),
672 WglFunction(Void, "glGetShaderiv", [(GLuint, "shader"), (GLenum, "pname"), (Pointer(GLint), "params")]),
673 WglFunction(GLboolean, "glIsProgram", [(GLuint, "program")]),
674 WglFunction(GLboolean, "glIsShader", [(GLuint, "shader")]),
675 WglFunction(Void, "glStencilFuncSeparate", [(GLenum, "face"), (GLenum, "func"), (GLint, "ref"), (GLuint, "mask")]),
676 WglFunction(Void, "glStencilMaskSeparate", [(GLenum, "face"), (GLuint, "mask")]),
677 WglFunction(Void, "glStencilOpSeparate", [(GLenum, "face"), (GLenum, "sfail"), (GLenum, "zfail"), (GLenum, "zpass")]),
678 WglFunction(Void, "glUniformMatrix2x3fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
679 WglFunction(Void, "glUniformMatrix2x4fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
680 WglFunction(Void, "glUniformMatrix3x2fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
681 WglFunction(Void, "glUniformMatrix3x4fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
682 WglFunction(Void, "glUniformMatrix4x2fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
683 WglFunction(Void, "glUniformMatrix4x3fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
684 WglFunction(Void, "glLoadTransposeMatrixdARB", [(Pointer(Const(GLdouble)), "m")]),
685 WglFunction(Void, "glLoadTransposeMatrixfARB", [(Pointer(Const(GLfloat)), "m")]),
686 WglFunction(Void, "glMultTransposeMatrixdARB", [(Pointer(Const(GLdouble)), "m")]),
687 WglFunction(Void, "glMultTransposeMatrixfARB", [(Pointer(Const(GLfloat)), "m")]),
688 WglFunction(Void, "glSampleCoverageARB", [(GLclampf, "value"), (GLboolean, "invert")]),
689 WglFunction(Void, "glCompressedTexImage1DARB", [(GLenum, "target"), (GLint, "level"), (GLenum, "internalformat"), (GLsizei, "width"), (GLint, "border"), (GLsizei, "imageSize"), (Pointer(Const(GLvoid)), "data")]),
690 WglFunction(Void, "glCompressedTexImage2DARB", [(GLenum, "target"), (GLint, "level"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLint, "border"), (GLsizei, "imageSize"), (Pointer(Const(GLvoid)), "data")]),
691 WglFunction(Void, "glCompressedTexImage3DARB", [(GLenum, "target"), (GLint, "level"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth"), (GLint, "border"), (GLsizei, "imageSize"), (Pointer(Const(GLvoid)), "data")]),
692 WglFunction(Void, "glCompressedTexSubImage1DARB", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLsizei, "width"), (GLenum, "format"), (GLsizei, "imageSize"), (Pointer(Const(GLvoid)), "data")]),
693 WglFunction(Void, "glCompressedTexSubImage2DARB", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLsizei, "width"), (GLsizei, "height"), (GLenum, "format"), (GLsizei, "imageSize"), (Pointer(Const(GLvoid)), "data")]),
694 WglFunction(Void, "glCompressedTexSubImage3DARB", [(GLenum, "target"), (GLint, "level"), (GLint, "xoffset"), (GLint, "yoffset"), (GLint, "zoffset"), (GLsizei, "width"), (GLsizei, "height"), (GLsizei, "depth"), (GLenum, "format"), (GLsizei, "imageSize"), (Pointer(Const(GLvoid)), "data")]),
695 WglFunction(Void, "glGetCompressedTexImageARB", [(GLenum, "target"), (GLint, "level"), (Pointer(GLvoid), "img")]),
696 WglFunction(Void, "glDisableVertexAttribArrayARB", [(GLuint, "index")]),
697 WglFunction(Void, "glEnableVertexAttribArrayARB", [(GLuint, "index")]),
698 WglFunction(Void, "glGetProgramEnvParameterdvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(GLdouble), "params")]),
699 WglFunction(Void, "glGetProgramEnvParameterfvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(GLfloat), "params")]),
700 WglFunction(Void, "glGetProgramLocalParameterdvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(GLdouble), "params")]),
701 WglFunction(Void, "glGetProgramLocalParameterfvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(GLfloat), "params")]),
702 WglFunction(Void, "glGetProgramStringARB", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLvoid), "string")]),
703 WglFunction(Void, "glGetProgramivARB", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLint), "params")]),
704 WglFunction(Void, "glGetVertexAttribdvARB", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLdouble), "params")]),
705 WglFunction(Void, "glGetVertexAttribfvARB", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
706 WglFunction(Void, "glGetVertexAttribivARB", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLint), "params")]),
707 WglFunction(Void, "glProgramEnvParameter4dARB", [(GLenum, "target"), (GLuint, "index"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
708 WglFunction(Void, "glProgramEnvParameter4dvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(Const(GLdouble)), "params")]),
709 WglFunction(Void, "glProgramEnvParameter4fARB", [(GLenum, "target"), (GLuint, "index"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
710 WglFunction(Void, "glProgramEnvParameter4fvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(Const(GLfloat)), "params")]),
711 WglFunction(Void, "glProgramLocalParameter4dARB", [(GLenum, "target"), (GLuint, "index"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
712 WglFunction(Void, "glProgramLocalParameter4dvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(Const(GLdouble)), "params")]),
713 WglFunction(Void, "glProgramLocalParameter4fARB", [(GLenum, "target"), (GLuint, "index"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
714 WglFunction(Void, "glProgramLocalParameter4fvARB", [(GLenum, "target"), (GLuint, "index"), (Pointer(Const(GLfloat)), "params")]),
715 WglFunction(Void, "glProgramStringARB", [(GLenum, "target"), (GLenum, "format"), (GLsizei, "len"), (Pointer(Const(GLvoid)), "string")]),
716 WglFunction(Void, "glVertexAttrib1dARB", [(GLuint, "index"), (GLdouble, "x")]),
717 WglFunction(Void, "glVertexAttrib1dvARB", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
718 WglFunction(Void, "glVertexAttrib1fARB", [(GLuint, "index"), (GLfloat, "x")]),
719 WglFunction(Void, "glVertexAttrib1fvARB", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
720 WglFunction(Void, "glVertexAttrib1sARB", [(GLuint, "index"), (GLshort, "x")]),
721 WglFunction(Void, "glVertexAttrib1svARB", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
722 WglFunction(Void, "glVertexAttrib2dARB", [(GLuint, "index"), (GLdouble, "x"), (GLdouble, "y")]),
723 WglFunction(Void, "glVertexAttrib2dvARB", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
724 WglFunction(Void, "glVertexAttrib2fARB", [(GLuint, "index"), (GLfloat, "x"), (GLfloat, "y")]),
725 WglFunction(Void, "glVertexAttrib2fvARB", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
726 WglFunction(Void, "glVertexAttrib2sARB", [(GLuint, "index"), (GLshort, "x"), (GLshort, "y")]),
727 WglFunction(Void, "glVertexAttrib2svARB", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
728 WglFunction(Void, "glVertexAttrib3dARB", [(GLuint, "index"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
729 WglFunction(Void, "glVertexAttrib3dvARB", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
730 WglFunction(Void, "glVertexAttrib3fARB", [(GLuint, "index"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
731 WglFunction(Void, "glVertexAttrib3fvARB", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
732 WglFunction(Void, "glVertexAttrib3sARB", [(GLuint, "index"), (GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
733 WglFunction(Void, "glVertexAttrib3svARB", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
734 WglFunction(Void, "glVertexAttrib4NbvARB", [(GLuint, "index"), (Pointer(Const(GLbyte)), "v")]),
735 WglFunction(Void, "glVertexAttrib4NivARB", [(GLuint, "index"), (Pointer(Const(GLint)), "v")]),
736 WglFunction(Void, "glVertexAttrib4NsvARB", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
737 WglFunction(Void, "glVertexAttrib4NubARB", [(GLuint, "index"), (GLubyte, "x"), (GLubyte, "y"), (GLubyte, "z"), (GLubyte, "w")]),
738 WglFunction(Void, "glVertexAttrib4NubvARB", [(GLuint, "index"), (Pointer(Const(GLubyte)), "v")]),
739 WglFunction(Void, "glVertexAttrib4NuivARB", [(GLuint, "index"), (Pointer(Const(GLuint)), "v")]),
740 WglFunction(Void, "glVertexAttrib4NusvARB", [(GLuint, "index"), (Pointer(Const(GLushort)), "v")]),
741 WglFunction(Void, "glVertexAttrib4bvARB", [(GLuint, "index"), (Pointer(Const(GLbyte)), "v")]),
742 WglFunction(Void, "glVertexAttrib4dARB", [(GLuint, "index"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
743 WglFunction(Void, "glVertexAttrib4dvARB", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
744 WglFunction(Void, "glVertexAttrib4fARB", [(GLuint, "index"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
745 WglFunction(Void, "glVertexAttrib4fvARB", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
746 WglFunction(Void, "glVertexAttrib4ivARB", [(GLuint, "index"), (Pointer(Const(GLint)), "v")]),
747 WglFunction(Void, "glVertexAttrib4sARB", [(GLuint, "index"), (GLshort, "x"), (GLshort, "y"), (GLshort, "z"), (GLshort, "w")]),
748 WglFunction(Void, "glVertexAttrib4svARB", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
749 WglFunction(Void, "glVertexAttrib4ubvARB", [(GLuint, "index"), (Pointer(Const(GLubyte)), "v")]),
750 WglFunction(Void, "glVertexAttrib4uivARB", [(GLuint, "index"), (Pointer(Const(GLuint)), "v")]),
751 WglFunction(Void, "glVertexAttrib4usvARB", [(GLuint, "index"), (Pointer(Const(GLushort)), "v")]),
752 WglFunction(Void, "glVertexAttribPointerARB", [(GLuint, "index"), (GLint, "size"), (GLenum, "type"), (GLboolean, "normalized"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
753 WglFunction(Void, "glBindBufferARB", [(GLenum, "target"), (GLuint, "buffer")]),
754 WglFunction(Void, "glBufferDataARB", [(GLenum, "target"), (GLsizeiptrARB, "size"), (Pointer(Const(GLvoid)), "data"), (GLenum, "usage")]),
755 WglFunction(Void, "glBufferSubDataARB", [(GLenum, "target"), (GLintptrARB, "offset"), (GLsizeiptrARB, "size"), (Pointer(Const(GLvoid)), "data")]),
756 WglFunction(Void, "glDeleteBuffersARB", [(GLsizei, "n"), (Pointer(Const(GLuint)), "buffer")]),
757 WglFunction(Void, "glGenBuffersARB", [(GLsizei, "n"), (Pointer(GLuint), "buffer")]),
758 WglFunction(Void, "glGetBufferParameterivARB", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLint), "params")]),
759 WglFunction(Void, "glGetBufferPointervARB", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Pointer(GLvoid)), "params")]),
760 WglFunction(Void, "glGetBufferSubDataARB", [(GLenum, "target"), (GLintptrARB, "offset"), (GLsizeiptrARB, "size"), (Pointer(GLvoid), "data")]),
761 WglFunction(GLboolean, "glIsBufferARB", [(GLuint, "buffer")]),
762 WglFunction(Pointer(GLvoid), "glMapBufferARB", [(GLenum, "target"), (GLenum, "access")]),
763 WglFunction(GLboolean, "glUnmapBufferARB", [(GLenum, "target")]),
764 WglFunction(Void, "glBeginQueryARB", [(GLenum, "target"), (GLuint, "id")]),
765 WglFunction(Void, "glDeleteQueriesARB", [(GLsizei, "n"), (Pointer(Const(GLuint)), "ids")]),
766 WglFunction(Void, "glEndQueryARB", [(GLenum, "target")]),
767 WglFunction(Void, "glGenQueriesARB", [(GLsizei, "n"), (Pointer(GLuint), "ids")]),
768 WglFunction(Void, "glGetQueryObjectivARB", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLint), "params")]),
769 WglFunction(Void, "glGetQueryObjectuivARB", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLuint), "params")]),
770 WglFunction(Void, "glGetQueryivARB", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLint), "params")]),
771 WglFunction(GLboolean, "glIsQueryARB", [(GLuint, "id")]),
772 WglFunction(Void, "glAttachObjectARB", [(GLhandleARB, "containerObj"), (GLhandleARB, "obj")]),
773 WglFunction(Void, "glCompileShader", [(GLhandleARB, "shader")]),
774 WglFunction(Void, "glCompileShaderARB", [(GLhandleARB, "shader")]),
775 WglFunction(GLhandleARB, "glCreateProgramObjectARB", []),
776 WglFunction(GLhandleARB, "glCreateShaderObjectARB", [(GLenum, "shaderType")]),
777 WglFunction(Void, "glDeleteObjectARB", [(GLhandleARB, "obj")]),
778 WglFunction(Void, "glDetachObjectARB", [(GLhandleARB, "containerObj"), (GLhandleARB, "attachedObj")]),
779 WglFunction(Void, "glGetActiveUniform", [(GLhandleARB, "program"), (GLuint, "index"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLint), "size"), (Pointer(GLenum), "type"), (Pointer(GLcharARB), "name")]),
780 WglFunction(Void, "glGetActiveUniformARB", [(GLhandleARB, "program"), (GLuint, "index"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLint), "size"), (Pointer(GLenum), "type"), (Pointer(GLcharARB), "name")]),
781 WglFunction(Void, "glGetAttachedObjectsARB", [(GLhandleARB, "containerObj"), (GLsizei, "maxLength"), (Pointer(GLsizei), "length"), (Pointer(GLhandleARB), "infoLog")]),
782 WglFunction(GLhandleARB, "glGetHandleARB", [(GLenum, "pname")]),
783 WglFunction(Void, "glGetInfoLogARB", [(GLhandleARB, "obj"), (GLsizei, "maxLength"), (Pointer(GLsizei), "length"), (Pointer(GLcharARB), "infoLog")]),
784 WglFunction(Void, "glGetObjectParameterfvARB", [(GLhandleARB, "obj"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
785 WglFunction(Void, "glGetObjectParameterivARB", [(GLhandleARB, "obj"), (GLenum, "pname"), (Pointer(GLint), "params")]),
786 WglFunction(Void, "glGetShaderSource", [(GLhandleARB, "shader"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLcharARB), "source")]),
787 WglFunction(Void, "glGetShaderSourceARB", [(GLhandleARB, "shader"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLcharARB), "source")]),
788 WglFunction(GLint, "glGetUniformLocation", [(GLhandleARB, "program"), (Pointer(Const(GLcharARB)), "name")]),
789 WglFunction(GLint, "glGetUniformLocationARB", [(GLhandleARB, "program"), (Pointer(Const(GLcharARB)), "name")]),
790 WglFunction(Void, "glGetUniformfv", [(GLhandleARB, "program"), (GLint, "location"), (Pointer(GLfloat), "params")]),
791 WglFunction(Void, "glGetUniformfvARB", [(GLhandleARB, "program"), (GLint, "location"), (Pointer(GLfloat), "params")]),
792 WglFunction(Void, "glGetUniformiv", [(GLhandleARB, "program"), (GLint, "location"), (Pointer(GLint), "params")]),
793 WglFunction(Void, "glGetUniformivARB", [(GLhandleARB, "program"), (GLint, "location"), (Pointer(GLint), "params")]),
794 WglFunction(Void, "glLinkProgram", [(GLhandleARB, "program")]),
795 WglFunction(Void, "glLinkProgramARB", [(GLhandleARB, "program")]),
796 WglFunction(Void, "glShaderSource", [(GLhandleARB, "shader"), (GLsizei, "count"), (Pointer(Pointer(Const(GLcharARB))), "string"), (Pointer(Const(GLint)), "length")]),
797 WglFunction(Void, "glShaderSourceARB", [(GLhandleARB, "shader"), (GLsizei, "count"), (Pointer(Pointer(Const(GLcharARB))), "string"), (Pointer(Const(GLint)), "length")]),
798 WglFunction(Void, "glUniform1f", [(GLint, "location"), (GLfloat, "v0")]),
799 WglFunction(Void, "glUniform1fARB", [(GLint, "location"), (GLfloat, "v0")]),
800 WglFunction(Void, "glUniform1fv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
801 WglFunction(Void, "glUniform1fvARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
802 WglFunction(Void, "glUniform1i", [(GLint, "location"), (GLint, "v0")]),
803 WglFunction(Void, "glUniform1iARB", [(GLint, "location"), (GLint, "v0")]),
804 WglFunction(Void, "glUniform1iv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
805 WglFunction(Void, "glUniform1ivARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
806 WglFunction(Void, "glUniform2f", [(GLint, "location"), (GLfloat, "v0"), (GLfloat, "v1")]),
807 WglFunction(Void, "glUniform2fARB", [(GLint, "location"), (GLfloat, "v0"), (GLfloat, "v1")]),
808 WglFunction(Void, "glUniform2fv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
809 WglFunction(Void, "glUniform2fvARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
810 WglFunction(Void, "glUniform2i", [(GLint, "location"), (GLint, "v0"), (GLint, "v1")]),
811 WglFunction(Void, "glUniform2iARB", [(GLint, "location"), (GLint, "v0"), (GLint, "v1")]),
812 WglFunction(Void, "glUniform2iv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
813 WglFunction(Void, "glUniform2ivARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
814 WglFunction(Void, "glUniform3f", [(GLint, "location"), (GLfloat, "v0"), (GLfloat, "v1"), (GLfloat, "v2")]),
815 WglFunction(Void, "glUniform3fARB", [(GLint, "location"), (GLfloat, "v0"), (GLfloat, "v1"), (GLfloat, "v2")]),
816 WglFunction(Void, "glUniform3fv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
817 WglFunction(Void, "glUniform3fvARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
818 WglFunction(Void, "glUniform3i", [(GLint, "location"), (GLint, "v0"), (GLint, "v1"), (GLint, "v2")]),
819 WglFunction(Void, "glUniform3iARB", [(GLint, "location"), (GLint, "v0"), (GLint, "v1"), (GLint, "v2")]),
820 WglFunction(Void, "glUniform3iv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
821 WglFunction(Void, "glUniform3ivARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
822 WglFunction(Void, "glUniform4f", [(GLint, "location"), (GLfloat, "v0"), (GLfloat, "v1"), (GLfloat, "v2"), (GLfloat, "v3")]),
823 WglFunction(Void, "glUniform4fARB", [(GLint, "location"), (GLfloat, "v0"), (GLfloat, "v1"), (GLfloat, "v2"), (GLfloat, "v3")]),
824 WglFunction(Void, "glUniform4fv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
825 WglFunction(Void, "glUniform4fvARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "value")]),
826 WglFunction(Void, "glUniform4i", [(GLint, "location"), (GLint, "v0"), (GLint, "v1"), (GLint, "v2"), (GLint, "v3")]),
827 WglFunction(Void, "glUniform4iARB", [(GLint, "location"), (GLint, "v0"), (GLint, "v1"), (GLint, "v2"), (GLint, "v3")]),
828 WglFunction(Void, "glUniform4iv", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
829 WglFunction(Void, "glUniform4ivARB", [(GLint, "location"), (GLsizei, "count"), (Pointer(Const(GLint)), "value")]),
830 WglFunction(Void, "glUniformMatrix2fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
831 WglFunction(Void, "glUniformMatrix2fvARB", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
832 WglFunction(Void, "glUniformMatrix3fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
833 WglFunction(Void, "glUniformMatrix3fvARB", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
834 WglFunction(Void, "glUniformMatrix4fv", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
835 WglFunction(Void, "glUniformMatrix4fvARB", [(GLint, "location"), (GLsizei, "count"), (GLboolean, "transpose"), (Pointer(Const(GLfloat)), "value")]),
836 WglFunction(Void, "glUseProgram", [(GLhandleARB, "program")]),
837 WglFunction(Void, "glUseProgramObjectARB", [(GLhandleARB, "program")]),
838 WglFunction(Void, "glValidateProgram", [(GLhandleARB, "program")]),
839 WglFunction(Void, "glValidateProgramARB", [(GLhandleARB, "program")]),
840 WglFunction(Void, "glBindAttribLocation", [(GLhandleARB, "program"), (GLuint, "index"), (Pointer(Const(GLcharARB)), "name")]),
841 WglFunction(Void, "glBindAttribLocationARB", [(GLhandleARB, "program"), (GLuint, "index"), (Pointer(Const(GLcharARB)), "name")]),
842 WglFunction(Void, "glGetActiveAttrib", [(GLhandleARB, "program"), (GLuint, "index"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLint), "size"), (Pointer(GLenum), "type"), (Pointer(GLcharARB), "name")]),
843 WglFunction(Void, "glGetActiveAttribARB", [(GLhandleARB, "program"), (GLuint, "index"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLint), "size"), (Pointer(GLenum), "type"), (Pointer(GLcharARB), "name")]),
844 WglFunction(GLint, "glGetAttribLocation", [(GLhandleARB, "program"), (Pointer(Const(GLcharARB)), "name")]),
845 WglFunction(GLint, "glGetAttribLocationARB", [(GLhandleARB, "program"), (Pointer(Const(GLcharARB)), "name")]),
846 WglFunction(Void, "glDrawBuffers", [(GLsizei, "n"), (Pointer(Const(GLenum)), "bufs")]),
847 WglFunction(Void, "glDrawBuffersARB", [(GLsizei, "n"), (Pointer(Const(GLenum)), "bufs")]),
848 WglFunction(Void, "glDrawBuffersATI", [(GLsizei, "n"), (Pointer(Const(GLenum)), "bufs")]),
849 WglFunction(Void, "glRenderbufferStorageMultisample", [(GLenum, "target"), (GLsizei, "samples"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
850 WglFunction(Void, "glRenderbufferStorageMultisampleEXT", [(GLenum, "target"), (GLsizei, "samples"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
851 WglFunction(Void, "glFlushMappedBufferRange", [(GLenum, "target"), (GLintptr, "offset"), (GLsizeiptr, "length")]),
852 WglFunction(Pointer(GLvoid), "glMapBufferRange", [(GLenum, "target"), (GLintptr, "offset"), (GLsizeiptr, "length"), (GLbitfield, "access")]),
853 WglFunction(Void, "glBindVertexArray", [(GLuint, "array")]),
854 WglFunction(Void, "glGenVertexArrays", [(GLsizei, "n"), (Pointer(GLuint), "arrays")]),
855 WglFunction(Void, "glCopyBufferSubData", [(GLenum, "readTarget"), (GLenum, "writeTarget"), (GLintptr, "readOffset"), (GLintptr, "writeOffset"), (GLsizeiptr, "size")]),
856 #WglFunction(GLenum, "glClientWaitSync", [(GLsync, "sync"), (GLbitfield, "flags"), (GLuint64, "timeout")]),
857 #WglFunction(Void, "glDeleteSync", [(GLsync, "sync")]),
858 #WglFunction(GLsync, "glFenceSync", [(GLenum, "condition"), (GLbitfield, "flags")]),
859 #WglFunction(Void, "glGetInteger64v", [(GLenum, "pname"), (Pointer(GLint64), "params")]),
860 #WglFunction(Void, "glGetSynciv", [(GLsync, "sync"), (GLenum, "pname"), (GLsizei, "bufSize"), (Pointer(GLsizei), "length"), (Pointer(GLint), "values")]),
861 #WglFunction(GLboolean, "glIsSync", [(GLsync, "sync")]),
862 #WglFunction(Void, "glWaitSync", [(GLsync, "sync"), (GLbitfield, "flags"), (GLuint64, "timeout")]),
863 WglFunction(Void, "glDrawElementsBaseVertex", [(GLenum, "mode"), (GLsizei, "count"), (GLenum, "type"), (Pointer(Const(GLvoid)), "indices"), (GLint, "basevertex")]),
864 WglFunction(Void, "glDrawRangeElementsBaseVertex", [(GLenum, "mode"), (GLuint, "start"), (GLuint, "end"), (GLsizei, "count"), (GLenum, "type"), (Pointer(Const(GLvoid)), "indices"), (GLint, "basevertex")]),
865 WglFunction(Void, "glMultiDrawElementsBaseVertex", [(GLenum, "mode"), (Pointer(Const(GLsizei)), "count"), (GLenum, "type"), (Pointer(Pointer(Const(GLvoid))), "indices"), (GLsizei, "primcount"), (Pointer(Const(GLint)), "basevertex")]),
866 WglFunction(Void, "glPolygonOffsetEXT", [(GLfloat, "factor"), (GLfloat, "bias")]),
867 WglFunction(Void, "glGetPixelTexGenParameterfvSGIS", [(GLenum, "pname"), (Pointer(GLfloat), "params")]),
868 WglFunction(Void, "glGetPixelTexGenParameterivSGIS", [(GLenum, "pname"), (Pointer(GLint), "params")]),
869 WglFunction(Void, "glPixelTexGenParameterfSGIS", [(GLenum, "pname"), (GLfloat, "param")]),
870 WglFunction(Void, "glPixelTexGenParameterfvSGIS", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
871 WglFunction(Void, "glPixelTexGenParameteriSGIS", [(GLenum, "pname"), (GLint, "param")]),
872 WglFunction(Void, "glPixelTexGenParameterivSGIS", [(GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
873 WglFunction(Void, "glSampleMaskSGIS", [(GLclampf, "value"), (GLboolean, "invert")]),
874 WglFunction(Void, "glSampleMaskEXT", [(GLclampf, "value"), (GLboolean, "invert")]),
875 WglFunction(Void, "glSamplePatternSGIS", [(GLenum, "pattern")]),
876 WglFunction(Void, "glSamplePatternEXT", [(GLenum, "pattern")]),
877 WglFunction(Void, "glColorPointerEXT", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLsizei, "count"), (Pointer(Const(GLvoid)), "pointer")]),
878 WglFunction(Void, "glEdgeFlagPointerEXT", [(GLsizei, "stride"), (GLsizei, "count"), (Pointer(Const(GLboolean)), "pointer")]),
879 WglFunction(Void, "glIndexPointerEXT", [(GLenum, "type"), (GLsizei, "stride"), (GLsizei, "count"), (Pointer(Const(GLvoid)), "pointer")]),
880 WglFunction(Void, "glNormalPointerEXT", [(GLenum, "type"), (GLsizei, "stride"), (GLsizei, "count"), (Pointer(Const(GLvoid)), "pointer")]),
881 WglFunction(Void, "glTexCoordPointerEXT", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLsizei, "count"), (Pointer(Const(GLvoid)), "pointer")]),
882 WglFunction(Void, "glVertexPointerEXT", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (GLsizei, "count"), (Pointer(Const(GLvoid)), "pointer")]),
883 WglFunction(Void, "glPointParameterf", [(GLenum, "pname"), (GLfloat, "param")]),
884 WglFunction(Void, "glPointParameterfARB", [(GLenum, "pname"), (GLfloat, "param")]),
885 WglFunction(Void, "glPointParameterfEXT", [(GLenum, "pname"), (GLfloat, "param")]),
886 WglFunction(Void, "glPointParameterfSGIS", [(GLenum, "pname"), (GLfloat, "param")]),
887 WglFunction(Void, "glPointParameterfv", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
888 WglFunction(Void, "glPointParameterfvARB", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
889 WglFunction(Void, "glPointParameterfvEXT", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
890 WglFunction(Void, "glPointParameterfvSGIS", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
891 WglFunction(Void, "glLockArraysEXT", [(GLint, "first"), (GLsizei, "count")]),
892 WglFunction(Void, "glUnlockArraysEXT", []),
893 WglFunction(Void, "glCullParameterdvEXT", [(GLenum, "pname"), (Pointer(GLdouble), "params")]),
894 WglFunction(Void, "glCullParameterfvEXT", [(GLenum, "pname"), (Pointer(GLfloat), "params")]),
895 WglFunction(Void, "glSecondaryColor3b", [(GLbyte, "red"), (GLbyte, "green"), (GLbyte, "blue")]),
896 WglFunction(Void, "glSecondaryColor3bEXT", [(GLbyte, "red"), (GLbyte, "green"), (GLbyte, "blue")]),
897 WglFunction(Void, "glSecondaryColor3bv", [(Pointer(Const(GLbyte)), "v")]),
898 WglFunction(Void, "glSecondaryColor3bvEXT", [(Pointer(Const(GLbyte)), "v")]),
899 WglFunction(Void, "glSecondaryColor3d", [(GLdouble, "red"), (GLdouble, "green"), (GLdouble, "blue")]),
900 WglFunction(Void, "glSecondaryColor3dEXT", [(GLdouble, "red"), (GLdouble, "green"), (GLdouble, "blue")]),
901 WglFunction(Void, "glSecondaryColor3dv", [(Pointer(Const(GLdouble)), "v")]),
902 WglFunction(Void, "glSecondaryColor3dvEXT", [(Pointer(Const(GLdouble)), "v")]),
903 WglFunction(Void, "glSecondaryColor3f", [(GLfloat, "red"), (GLfloat, "green"), (GLfloat, "blue")]),
904 WglFunction(Void, "glSecondaryColor3fEXT", [(GLfloat, "red"), (GLfloat, "green"), (GLfloat, "blue")]),
905 WglFunction(Void, "glSecondaryColor3fv", [(Pointer(Const(GLfloat)), "v")]),
906 WglFunction(Void, "glSecondaryColor3fvEXT", [(Pointer(Const(GLfloat)), "v")]),
907 WglFunction(Void, "glSecondaryColor3i", [(GLint, "red"), (GLint, "green"), (GLint, "blue")]),
908 WglFunction(Void, "glSecondaryColor3iEXT", [(GLint, "red"), (GLint, "green"), (GLint, "blue")]),
909 WglFunction(Void, "glSecondaryColor3iv", [(Pointer(Const(GLint)), "v")]),
910 WglFunction(Void, "glSecondaryColor3ivEXT", [(Pointer(Const(GLint)), "v")]),
911 WglFunction(Void, "glSecondaryColor3s", [(GLshort, "red"), (GLshort, "green"), (GLshort, "blue")]),
912 WglFunction(Void, "glSecondaryColor3sEXT", [(GLshort, "red"), (GLshort, "green"), (GLshort, "blue")]),
913 WglFunction(Void, "glSecondaryColor3sv", [(Pointer(Const(GLshort)), "v")]),
914 WglFunction(Void, "glSecondaryColor3svEXT", [(Pointer(Const(GLshort)), "v")]),
915 WglFunction(Void, "glSecondaryColor3ub", [(GLubyte, "red"), (GLubyte, "green"), (GLubyte, "blue")]),
916 WglFunction(Void, "glSecondaryColor3ubEXT", [(GLubyte, "red"), (GLubyte, "green"), (GLubyte, "blue")]),
917 WglFunction(Void, "glSecondaryColor3ubv", [(Pointer(Const(GLubyte)), "v")]),
918 WglFunction(Void, "glSecondaryColor3ubvEXT", [(Pointer(Const(GLubyte)), "v")]),
919 WglFunction(Void, "glSecondaryColor3ui", [(GLuint, "red"), (GLuint, "green"), (GLuint, "blue")]),
920 WglFunction(Void, "glSecondaryColor3uiEXT", [(GLuint, "red"), (GLuint, "green"), (GLuint, "blue")]),
921 WglFunction(Void, "glSecondaryColor3uiv", [(Pointer(Const(GLuint)), "v")]),
922 WglFunction(Void, "glSecondaryColor3uivEXT", [(Pointer(Const(GLuint)), "v")]),
923 WglFunction(Void, "glSecondaryColor3us", [(GLushort, "red"), (GLushort, "green"), (GLushort, "blue")]),
924 WglFunction(Void, "glSecondaryColor3usEXT", [(GLushort, "red"), (GLushort, "green"), (GLushort, "blue")]),
925 WglFunction(Void, "glSecondaryColor3usv", [(Pointer(Const(GLushort)), "v")]),
926 WglFunction(Void, "glSecondaryColor3usvEXT", [(Pointer(Const(GLushort)), "v")]),
927 WglFunction(Void, "glSecondaryColorPointer", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
928 WglFunction(Void, "glSecondaryColorPointerEXT", [(GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
929 WglFunction(Void, "glMultiDrawArrays", [(GLenum, "mode"), (Pointer(GLint), "first"), (Pointer(GLsizei), "count"), (GLsizei, "primcount")]),
930 WglFunction(Void, "glMultiDrawArraysEXT", [(GLenum, "mode"), (Pointer(GLint), "first"), (Pointer(GLsizei), "count"), (GLsizei, "primcount")]),
931 WglFunction(Void, "glMultiDrawElements", [(GLenum, "mode"), (Pointer(Const(GLsizei)), "count"), (GLenum, "type"), (Pointer(Pointer(Const(GLvoid))), "indices"), (GLsizei, "primcount")]),
932 WglFunction(Void, "glMultiDrawElementsEXT", [(GLenum, "mode"), (Pointer(Const(GLsizei)), "count"), (GLenum, "type"), (Pointer(Pointer(Const(GLvoid))), "indices"), (GLsizei, "primcount")]),
933 WglFunction(Void, "glFogCoordPointer", [(GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
934 WglFunction(Void, "glFogCoordPointerEXT", [(GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
935 WglFunction(Void, "glFogCoordd", [(GLdouble, "coord")]),
936 WglFunction(Void, "glFogCoorddEXT", [(GLdouble, "coord")]),
937 WglFunction(Void, "glFogCoorddv", [(Pointer(Const(GLdouble)), "coord")]),
938 WglFunction(Void, "glFogCoorddvEXT", [(Pointer(Const(GLdouble)), "coord")]),
939 WglFunction(Void, "glFogCoordf", [(GLfloat, "coord")]),
940 WglFunction(Void, "glFogCoordfEXT", [(GLfloat, "coord")]),
941 WglFunction(Void, "glFogCoordfv", [(Pointer(Const(GLfloat)), "coord")]),
942 WglFunction(Void, "glFogCoordfvEXT", [(Pointer(Const(GLfloat)), "coord")]),
943 WglFunction(Void, "glPixelTexGenSGIX", [(GLenum, "mode")]),
944 WglFunction(Void, "glBlendFuncSeparate", [(GLenum, "sfactorRGB"), (GLenum, "dfactorRGB"), (GLenum, "sfactorAlpha"), (GLenum, "dfactorAlpha")]),
945 WglFunction(Void, "glBlendFuncSeparateEXT", [(GLenum, "sfactorRGB"), (GLenum, "dfactorRGB"), (GLenum, "sfactorAlpha"), (GLenum, "dfactorAlpha")]),
946 WglFunction(Void, "glBlendFuncSeparateINGR", [(GLenum, "sfactorRGB"), (GLenum, "dfactorRGB"), (GLenum, "sfactorAlpha"), (GLenum, "dfactorAlpha")]),
947 WglFunction(Void, "glFlushVertexArrayRangeNV", []),
948 WglFunction(Void, "glVertexArrayRangeNV", [(GLsizei, "length"), (Pointer(Const(GLvoid)), "pointer")]),
949 WglFunction(Void, "glCombinerInputNV", [(GLenum, "stage"), (GLenum, "portion"), (GLenum, "variable"), (GLenum, "input"), (GLenum, "mapping"), (GLenum, "componentUsage")]),
950 WglFunction(Void, "glCombinerOutputNV", [(GLenum, "stage"), (GLenum, "portion"), (GLenum, "abOutput"), (GLenum, "cdOutput"), (GLenum, "sumOutput"), (GLenum, "scale"), (GLenum, "bias"), (GLboolean, "abDotProduct"), (GLboolean, "cdDotProduct"), (GLboolean, "muxSum")]),
951 WglFunction(Void, "glCombinerParameterfNV", [(GLenum, "pname"), (GLfloat, "param")]),
952 WglFunction(Void, "glCombinerParameterfvNV", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "params")]),
953 WglFunction(Void, "glCombinerParameteriNV", [(GLenum, "pname"), (GLint, "param")]),
954 WglFunction(Void, "glCombinerParameterivNV", [(GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
955 WglFunction(Void, "glFinalCombinerInputNV", [(GLenum, "variable"), (GLenum, "input"), (GLenum, "mapping"), (GLenum, "componentUsage")]),
956 WglFunction(Void, "glGetCombinerInputParameterfvNV", [(GLenum, "stage"), (GLenum, "portion"), (GLenum, "variable"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
957 WglFunction(Void, "glGetCombinerInputParameterivNV", [(GLenum, "stage"), (GLenum, "portion"), (GLenum, "variable"), (GLenum, "pname"), (Pointer(GLint), "params")]),
958 WglFunction(Void, "glGetCombinerOutputParameterfvNV", [(GLenum, "stage"), (GLenum, "portion"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
959 WglFunction(Void, "glGetCombinerOutputParameterivNV", [(GLenum, "stage"), (GLenum, "portion"), (GLenum, "pname"), (Pointer(GLint), "params")]),
960 WglFunction(Void, "glGetFinalCombinerInputParameterfvNV", [(GLenum, "variable"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
961 WglFunction(Void, "glGetFinalCombinerInputParameterivNV", [(GLenum, "variable"), (GLenum, "pname"), (Pointer(GLint), "params")]),
962 WglFunction(Void, "glResizeBuffersMESA", []),
963 WglFunction(Void, "glWindowPos2d", [(GLdouble, "x"), (GLdouble, "y")]),
964 WglFunction(Void, "glWindowPos2dARB", [(GLdouble, "x"), (GLdouble, "y")]),
965 WglFunction(Void, "glWindowPos2dMESA", [(GLdouble, "x"), (GLdouble, "y")]),
966 WglFunction(Void, "glWindowPos2dv", [(Pointer(Const(GLdouble)), "v")]),
967 WglFunction(Void, "glWindowPos2dvARB", [(Pointer(Const(GLdouble)), "v")]),
968 WglFunction(Void, "glWindowPos2dvMESA", [(Pointer(Const(GLdouble)), "v")]),
969 WglFunction(Void, "glWindowPos2f", [(GLfloat, "x"), (GLfloat, "y")]),
970 WglFunction(Void, "glWindowPos2fARB", [(GLfloat, "x"), (GLfloat, "y")]),
971 WglFunction(Void, "glWindowPos2fMESA", [(GLfloat, "x"), (GLfloat, "y")]),
972 WglFunction(Void, "glWindowPos2fv", [(Pointer(Const(GLfloat)), "v")]),
973 WglFunction(Void, "glWindowPos2fvARB", [(Pointer(Const(GLfloat)), "v")]),
974 WglFunction(Void, "glWindowPos2fvMESA", [(Pointer(Const(GLfloat)), "v")]),
975 WglFunction(Void, "glWindowPos2i", [(GLint, "x"), (GLint, "y")]),
976 WglFunction(Void, "glWindowPos2iARB", [(GLint, "x"), (GLint, "y")]),
977 WglFunction(Void, "glWindowPos2iMESA", [(GLint, "x"), (GLint, "y")]),
978 WglFunction(Void, "glWindowPos2iv", [(Pointer(Const(GLint)), "v")]),
979 WglFunction(Void, "glWindowPos2ivARB", [(Pointer(Const(GLint)), "v")]),
980 WglFunction(Void, "glWindowPos2ivMESA", [(Pointer(Const(GLint)), "v")]),
981 WglFunction(Void, "glWindowPos2s", [(GLshort, "x"), (GLshort, "y")]),
982 WglFunction(Void, "glWindowPos2sARB", [(GLshort, "x"), (GLshort, "y")]),
983 WglFunction(Void, "glWindowPos2sMESA", [(GLshort, "x"), (GLshort, "y")]),
984 WglFunction(Void, "glWindowPos2sv", [(Pointer(Const(GLshort)), "v")]),
985 WglFunction(Void, "glWindowPos2svARB", [(Pointer(Const(GLshort)), "v")]),
986 WglFunction(Void, "glWindowPos2svMESA", [(Pointer(Const(GLshort)), "v")]),
987 WglFunction(Void, "glWindowPos3d", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
988 WglFunction(Void, "glWindowPos3dARB", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
989 WglFunction(Void, "glWindowPos3dMESA", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
990 WglFunction(Void, "glWindowPos3dv", [(Pointer(Const(GLdouble)), "v")]),
991 WglFunction(Void, "glWindowPos3dvARB", [(Pointer(Const(GLdouble)), "v")]),
992 WglFunction(Void, "glWindowPos3dvMESA", [(Pointer(Const(GLdouble)), "v")]),
993 WglFunction(Void, "glWindowPos3f", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
994 WglFunction(Void, "glWindowPos3fARB", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
995 WglFunction(Void, "glWindowPos3fMESA", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
996 WglFunction(Void, "glWindowPos3fv", [(Pointer(Const(GLfloat)), "v")]),
997 WglFunction(Void, "glWindowPos3fvARB", [(Pointer(Const(GLfloat)), "v")]),
998 WglFunction(Void, "glWindowPos3fvMESA", [(Pointer(Const(GLfloat)), "v")]),
999 WglFunction(Void, "glWindowPos3i", [(GLint, "x"), (GLint, "y"), (GLint, "z")]),
1000 WglFunction(Void, "glWindowPos3iARB", [(GLint, "x"), (GLint, "y"), (GLint, "z")]),
1001 WglFunction(Void, "glWindowPos3iMESA", [(GLint, "x"), (GLint, "y"), (GLint, "z")]),
1002 WglFunction(Void, "glWindowPos3iv", [(Pointer(Const(GLint)), "v")]),
1003 WglFunction(Void, "glWindowPos3ivARB", [(Pointer(Const(GLint)), "v")]),
1004 WglFunction(Void, "glWindowPos3ivMESA", [(Pointer(Const(GLint)), "v")]),
1005 WglFunction(Void, "glWindowPos3s", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
1006 WglFunction(Void, "glWindowPos3sARB", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
1007 WglFunction(Void, "glWindowPos3sMESA", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
1008 WglFunction(Void, "glWindowPos3sv", [(Pointer(Const(GLshort)), "v")]),
1009 WglFunction(Void, "glWindowPos3svARB", [(Pointer(Const(GLshort)), "v")]),
1010 WglFunction(Void, "glWindowPos3svMESA", [(Pointer(Const(GLshort)), "v")]),
1011 WglFunction(Void, "glWindowPos4dMESA", [(GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
1012 WglFunction(Void, "glWindowPos4dvMESA", [(Pointer(Const(GLdouble)), "v")]),
1013 WglFunction(Void, "glWindowPos4fMESA", [(GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
1014 WglFunction(Void, "glWindowPos4fvMESA", [(Pointer(Const(GLfloat)), "v")]),
1015 WglFunction(Void, "glWindowPos4iMESA", [(GLint, "x"), (GLint, "y"), (GLint, "z"), (GLint, "w")]),
1016 WglFunction(Void, "glWindowPos4ivMESA", [(Pointer(Const(GLint)), "v")]),
1017 WglFunction(Void, "glWindowPos4sMESA", [(GLshort, "x"), (GLshort, "y"), (GLshort, "z"), (GLshort, "w")]),
1018 WglFunction(Void, "glWindowPos4svMESA", [(Pointer(Const(GLshort)), "v")]),
1019 WglFunction(Void, "glMultiModeDrawArraysIBM", [(Pointer(Const(GLenum)), "mode"), (Pointer(Const(GLint)), "first"), (Pointer(Const(GLsizei)), "count"), (GLsizei, "primcount"), (GLint, "modestride")]),
1020 WglFunction(Void, "glMultiModeDrawElementsIBM", [(Pointer(Const(GLenum)), "mode"), (Pointer(Const(GLsizei)), "count"), (GLenum, "type"), (Pointer(Const(Pointer(Const(GLvoid)))), "indices"), (GLsizei, "primcount"), (GLint, "modestride")]),
1021 WglFunction(Void, "glDeleteFencesNV", [(GLsizei, "n"), (Pointer(Const(GLuint)), "fences")]),
1022 WglFunction(Void, "glFinishFenceNV", [(GLuint, "fence")]),
1023 WglFunction(Void, "glGenFencesNV", [(GLsizei, "n"), (Pointer(GLuint), "fences")]),
1024 WglFunction(Void, "glGetFenceivNV", [(GLuint, "fence"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1025 WglFunction(GLboolean, "glIsFenceNV", [(GLuint, "fence")]),
1026 WglFunction(Void, "glSetFenceNV", [(GLuint, "fence"), (GLenum, "condition")]),
1027 WglFunction(GLboolean, "glTestFenceNV", [(GLuint, "fence")]),
1028 WglFunction(GLboolean, "glAreProgramsResidentNV", [(GLsizei, "n"), (Pointer(Const(GLuint)), "ids"), (Pointer(GLboolean), "residences")]),
1029 WglFunction(Void, "glBindProgramARB", [(GLenum, "target"), (GLuint, "program")]),
1030 WglFunction(Void, "glBindProgramNV", [(GLenum, "target"), (GLuint, "program")]),
1031 WglFunction(Void, "glDeleteProgramsARB", [(GLsizei, "n"), (Pointer(Const(GLuint)), "programs")]),
1032 WglFunction(Void, "glDeleteProgramsNV", [(GLsizei, "n"), (Pointer(Const(GLuint)), "programs")]),
1033 WglFunction(Void, "glExecuteProgramNV", [(GLenum, "target"), (GLuint, "id"), (Pointer(Const(GLfloat)), "params")]),
1034 WglFunction(Void, "glGenProgramsARB", [(GLsizei, "n"), (Pointer(GLuint), "programs")]),
1035 WglFunction(Void, "glGenProgramsNV", [(GLsizei, "n"), (Pointer(GLuint), "programs")]),
1036 WglFunction(Void, "glGetProgramParameterdvNV", [(GLenum, "target"), (GLuint, "index"), (GLenum, "pname"), (Pointer(GLdouble), "params")]),
1037 WglFunction(Void, "glGetProgramParameterfvNV", [(GLenum, "target"), (GLuint, "index"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
1038 WglFunction(Void, "glGetProgramStringNV", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLubyte), "program")]),
1039 WglFunction(Void, "glGetProgramivNV", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1040 WglFunction(Void, "glGetTrackMatrixivNV", [(GLenum, "target"), (GLuint, "address"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1041 WglFunction(Void, "glGetVertexAttribPointerv", [(GLuint, "index"), (GLenum, "pname"), (Pointer(Pointer(GLvoid)), "pointer")]),
1042 WglFunction(Void, "glGetVertexAttribPointervARB", [(GLuint, "index"), (GLenum, "pname"), (Pointer(Pointer(GLvoid)), "pointer")]),
1043 WglFunction(Void, "glGetVertexAttribPointervNV", [(GLuint, "index"), (GLenum, "pname"), (Pointer(Pointer(GLvoid)), "pointer")]),
1044 WglFunction(Void, "glGetVertexAttribdvNV", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLdouble), "params")]),
1045 WglFunction(Void, "glGetVertexAttribfvNV", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLfloat), "params")]),
1046 WglFunction(Void, "glGetVertexAttribivNV", [(GLuint, "index"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1047 WglFunction(GLboolean, "glIsProgramARB", [(GLuint, "program")]),
1048 WglFunction(GLboolean, "glIsProgramNV", [(GLuint, "program")]),
1049 WglFunction(Void, "glLoadProgramNV", [(GLenum, "target"), (GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "program")]),
1050 WglFunction(Void, "glProgramParameters4dvNV", [(GLenum, "target"), (GLuint, "index"), (GLuint, "num"), (Pointer(Const(GLdouble)), "params")]),
1051 WglFunction(Void, "glProgramParameters4fvNV", [(GLenum, "target"), (GLuint, "index"), (GLuint, "num"), (Pointer(Const(GLfloat)), "params")]),
1052 WglFunction(Void, "glRequestResidentProgramsNV", [(GLsizei, "n"), (Pointer(Const(GLuint)), "ids")]),
1053 WglFunction(Void, "glTrackMatrixNV", [(GLenum, "target"), (GLuint, "address"), (GLenum, "matrix"), (GLenum, "transform")]),
1054 WglFunction(Void, "glVertexAttrib1dNV", [(GLuint, "index"), (GLdouble, "x")]),
1055 WglFunction(Void, "glVertexAttrib1dvNV", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
1056 WglFunction(Void, "glVertexAttrib1fNV", [(GLuint, "index"), (GLfloat, "x")]),
1057 WglFunction(Void, "glVertexAttrib1fvNV", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
1058 WglFunction(Void, "glVertexAttrib1sNV", [(GLuint, "index"), (GLshort, "x")]),
1059 WglFunction(Void, "glVertexAttrib1svNV", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
1060 WglFunction(Void, "glVertexAttrib2dNV", [(GLuint, "index"), (GLdouble, "x"), (GLdouble, "y")]),
1061 WglFunction(Void, "glVertexAttrib2dvNV", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
1062 WglFunction(Void, "glVertexAttrib2fNV", [(GLuint, "index"), (GLfloat, "x"), (GLfloat, "y")]),
1063 WglFunction(Void, "glVertexAttrib2fvNV", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
1064 WglFunction(Void, "glVertexAttrib2sNV", [(GLuint, "index"), (GLshort, "x"), (GLshort, "y")]),
1065 WglFunction(Void, "glVertexAttrib2svNV", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
1066 WglFunction(Void, "glVertexAttrib3dNV", [(GLuint, "index"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z")]),
1067 WglFunction(Void, "glVertexAttrib3dvNV", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
1068 WglFunction(Void, "glVertexAttrib3fNV", [(GLuint, "index"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z")]),
1069 WglFunction(Void, "glVertexAttrib3fvNV", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
1070 WglFunction(Void, "glVertexAttrib3sNV", [(GLuint, "index"), (GLshort, "x"), (GLshort, "y"), (GLshort, "z")]),
1071 WglFunction(Void, "glVertexAttrib3svNV", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
1072 WglFunction(Void, "glVertexAttrib4dNV", [(GLuint, "index"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
1073 WglFunction(Void, "glVertexAttrib4dvNV", [(GLuint, "index"), (Pointer(Const(GLdouble)), "v")]),
1074 WglFunction(Void, "glVertexAttrib4fNV", [(GLuint, "index"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
1075 WglFunction(Void, "glVertexAttrib4fvNV", [(GLuint, "index"), (Pointer(Const(GLfloat)), "v")]),
1076 WglFunction(Void, "glVertexAttrib4sNV", [(GLuint, "index"), (GLshort, "x"), (GLshort, "y"), (GLshort, "z"), (GLshort, "w")]),
1077 WglFunction(Void, "glVertexAttrib4svNV", [(GLuint, "index"), (Pointer(Const(GLshort)), "v")]),
1078 WglFunction(Void, "glVertexAttrib4ubNV", [(GLuint, "index"), (GLubyte, "x"), (GLubyte, "y"), (GLubyte, "z"), (GLubyte, "w")]),
1079 WglFunction(Void, "glVertexAttrib4ubvNV", [(GLuint, "index"), (Pointer(Const(GLubyte)), "v")]),
1080 WglFunction(Void, "glVertexAttribPointerNV", [(GLuint, "index"), (GLint, "size"), (GLenum, "type"), (GLsizei, "stride"), (Pointer(Const(GLvoid)), "pointer")]),
1081 WglFunction(Void, "glVertexAttribs1dvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLdouble)), "v")]),
1082 WglFunction(Void, "glVertexAttribs1fvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLfloat)), "v")]),
1083 WglFunction(Void, "glVertexAttribs1svNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLshort)), "v")]),
1084 WglFunction(Void, "glVertexAttribs2dvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLdouble)), "v")]),
1085 WglFunction(Void, "glVertexAttribs2fvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLfloat)), "v")]),
1086 WglFunction(Void, "glVertexAttribs2svNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLshort)), "v")]),
1087 WglFunction(Void, "glVertexAttribs3dvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLdouble)), "v")]),
1088 WglFunction(Void, "glVertexAttribs3fvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLfloat)), "v")]),
1089 WglFunction(Void, "glVertexAttribs3svNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLshort)), "v")]),
1090 WglFunction(Void, "glVertexAttribs4dvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLdouble)), "v")]),
1091 WglFunction(Void, "glVertexAttribs4fvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLfloat)), "v")]),
1092 WglFunction(Void, "glVertexAttribs4svNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLshort)), "v")]),
1093 WglFunction(Void, "glVertexAttribs4ubvNV", [(GLuint, "index"), (GLsizei, "n"), (Pointer(Const(GLubyte)), "v")]),
1094 WglFunction(Void, "glGetTexBumpParameterfvATI", [(GLenum, "pname"), (Pointer(GLfloat), "param")]),
1095 WglFunction(Void, "glGetTexBumpParameterivATI", [(GLenum, "pname"), (Pointer(GLint), "param")]),
1096 WglFunction(Void, "glTexBumpParameterfvATI", [(GLenum, "pname"), (Pointer(Const(GLfloat)), "param")]),
1097 WglFunction(Void, "glTexBumpParameterivATI", [(GLenum, "pname"), (Pointer(Const(GLint)), "param")]),
1098 WglFunction(Void, "glAlphaFragmentOp1ATI", [(GLenum, "op"), (GLuint, "dst"), (GLuint, "dstMod"), (GLuint, "arg1"), (GLuint, "arg1Rep"), (GLuint, "arg1Mod")]),
1099 WglFunction(Void, "glAlphaFragmentOp2ATI", [(GLenum, "op"), (GLuint, "dst"), (GLuint, "dstMod"), (GLuint, "arg1"), (GLuint, "arg1Rep"), (GLuint, "arg1Mod"), (GLuint, "arg2"), (GLuint, "arg2Rep"), (GLuint, "arg2Mod")]),
1100 WglFunction(Void, "glAlphaFragmentOp3ATI", [(GLenum, "op"), (GLuint, "dst"), (GLuint, "dstMod"), (GLuint, "arg1"), (GLuint, "arg1Rep"), (GLuint, "arg1Mod"), (GLuint, "arg2"), (GLuint, "arg2Rep"), (GLuint, "arg2Mod"), (GLuint, "arg3"), (GLuint, "arg3Rep"), (GLuint, "arg3Mod")]),
1101 WglFunction(Void, "glBeginFragmentShaderATI", []),
1102 WglFunction(Void, "glBindFragmentShaderATI", [(GLuint, "id")]),
1103 WglFunction(Void, "glColorFragmentOp1ATI", [(GLenum, "op"), (GLuint, "dst"), (GLuint, "dstMask"), (GLuint, "dstMod"), (GLuint, "arg1"), (GLuint, "arg1Rep"), (GLuint, "arg1Mod")]),
1104 WglFunction(Void, "glColorFragmentOp2ATI", [(GLenum, "op"), (GLuint, "dst"), (GLuint, "dstMask"), (GLuint, "dstMod"), (GLuint, "arg1"), (GLuint, "arg1Rep"), (GLuint, "arg1Mod"), (GLuint, "arg2"), (GLuint, "arg2Rep"), (GLuint, "arg2Mod")]),
1105 WglFunction(Void, "glColorFragmentOp3ATI", [(GLenum, "op"), (GLuint, "dst"), (GLuint, "dstMask"), (GLuint, "dstMod"), (GLuint, "arg1"), (GLuint, "arg1Rep"), (GLuint, "arg1Mod"), (GLuint, "arg2"), (GLuint, "arg2Rep"), (GLuint, "arg2Mod"), (GLuint, "arg3"), (GLuint, "arg3Rep"), (GLuint, "arg3Mod")]),
1106 WglFunction(Void, "glDeleteFragmentShaderATI", [(GLuint, "id")]),
1107 WglFunction(Void, "glEndFragmentShaderATI", []),
1108 WglFunction(GLuint, "glGenFragmentShadersATI", [(GLuint, "range")]),
1109 WglFunction(Void, "glPassTexCoordATI", [(GLuint, "dst"), (GLuint, "coord"), (GLenum, "swizzle")]),
1110 WglFunction(Void, "glSampleMapATI", [(GLuint, "dst"), (GLuint, "interp"), (GLenum, "swizzle")]),
1111 WglFunction(Void, "glSetFragmentShaderConstantATI", [(GLuint, "dst"), (Pointer(Const(GLfloat)), "value")]),
1112 WglFunction(Void, "glPointParameteri", [(GLenum, "pname"), (GLint, "param")]),
1113 WglFunction(Void, "glPointParameteriNV", [(GLenum, "pname"), (GLint, "param")]),
1114 WglFunction(Void, "glPointParameteriv", [(GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
1115 WglFunction(Void, "glPointParameterivNV", [(GLenum, "pname"), (Pointer(Const(GLint)), "params")]),
1116 WglFunction(Void, "glActiveStencilFaceEXT", [(GLenum, "face")]),
1117 WglFunction(Void, "glBindVertexArrayAPPLE", [(GLuint, "array")]),
1118 WglFunction(Void, "glDeleteVertexArrays", [(GLsizei, "n"), (Pointer(Const(GLuint)), "arrays")]),
1119 WglFunction(Void, "glDeleteVertexArraysAPPLE", [(GLsizei, "n"), (Pointer(Const(GLuint)), "arrays")]),
1120 WglFunction(Void, "glGenVertexArraysAPPLE", [(GLsizei, "n"), (Pointer(GLuint), "arrays")]),
1121 WglFunction(GLboolean, "glIsVertexArray", [(GLuint, "array")]),
1122 WglFunction(GLboolean, "glIsVertexArrayAPPLE", [(GLuint, "array")]),
1123 WglFunction(Void, "glGetProgramNamedParameterdvNV", [(GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "name"), (Pointer(GLdouble), "params")]),
1124 WglFunction(Void, "glGetProgramNamedParameterfvNV", [(GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "name"), (Pointer(GLfloat), "params")]),
1125 WglFunction(Void, "glProgramNamedParameter4dNV", [(GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "name"), (GLdouble, "x"), (GLdouble, "y"), (GLdouble, "z"), (GLdouble, "w")]),
1126 WglFunction(Void, "glProgramNamedParameter4dvNV", [(GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "name"), (Pointer(Const(GLdouble)), "v")]),
1127 WglFunction(Void, "glProgramNamedParameter4fNV", [(GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "name"), (GLfloat, "x"), (GLfloat, "y"), (GLfloat, "z"), (GLfloat, "w")]),
1128 WglFunction(Void, "glProgramNamedParameter4fvNV", [(GLuint, "id"), (GLsizei, "len"), (Pointer(Const(GLubyte)), "name"), (Pointer(Const(GLfloat)), "v")]),
1129 WglFunction(Void, "glDepthBoundsEXT", [(GLclampd, "zmin"), (GLclampd, "zmax")]),
1130 WglFunction(Void, "glBlendEquationSeparate", [(GLenum, "modeRGB"), (GLenum, "modeA")]),
1131 WglFunction(Void, "glBlendEquationSeparateEXT", [(GLenum, "modeRGB"), (GLenum, "modeA")]),
1132 WglFunction(Void, "glBlendEquationSeparateATI", [(GLenum, "modeRGB"), (GLenum, "modeA")]),
1133 WglFunction(Void, "glBindFramebuffer", [(GLenum, "target"), (GLuint, "framebuffer")]),
1134 WglFunction(Void, "glBindFramebufferEXT", [(GLenum, "target"), (GLuint, "framebuffer")]),
1135 WglFunction(Void, "glBindRenderbuffer", [(GLenum, "target"), (GLuint, "renderbuffer")]),
1136 WglFunction(Void, "glBindRenderbufferEXT", [(GLenum, "target"), (GLuint, "renderbuffer")]),
1137 WglFunction(GLenum, "glCheckFramebufferStatus", [(GLenum, "target")]),
1138 WglFunction(GLenum, "glCheckFramebufferStatusEXT", [(GLenum, "target")]),
1139 WglFunction(Void, "glDeleteFramebuffers", [(GLsizei, "n"), (Pointer(Const(GLuint)), "framebuffers")]),
1140 WglFunction(Void, "glDeleteFramebuffersEXT", [(GLsizei, "n"), (Pointer(Const(GLuint)), "framebuffers")]),
1141 WglFunction(Void, "glDeleteRenderbuffers", [(GLsizei, "n"), (Pointer(Const(GLuint)), "renderbuffers")]),
1142 WglFunction(Void, "glDeleteRenderbuffersEXT", [(GLsizei, "n"), (Pointer(Const(GLuint)), "renderbuffers")]),
1143 WglFunction(Void, "glFramebufferRenderbuffer", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "renderbuffertarget"), (GLuint, "renderbuffer")]),
1144 WglFunction(Void, "glFramebufferRenderbufferEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "renderbuffertarget"), (GLuint, "renderbuffer")]),
1145 WglFunction(Void, "glFramebufferTexture1D", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLuint, "texture"), (GLint, "level")]),
1146 WglFunction(Void, "glFramebufferTexture1DEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLuint, "texture"), (GLint, "level")]),
1147 WglFunction(Void, "glFramebufferTexture2D", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLuint, "texture"), (GLint, "level")]),
1148 WglFunction(Void, "glFramebufferTexture2DEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLuint, "texture"), (GLint, "level")]),
1149 WglFunction(Void, "glFramebufferTexture3D", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLuint, "texture"), (GLint, "level"), (GLint, "zoffset")]),
1150 WglFunction(Void, "glFramebufferTexture3DEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "textarget"), (GLuint, "texture"), (GLint, "level"), (GLint, "zoffset")]),
1151 WglFunction(Void, "glGenFramebuffers", [(GLsizei, "n"), (Pointer(GLuint), "framebuffers")]),
1152 WglFunction(Void, "glGenFramebuffersEXT", [(GLsizei, "n"), (Pointer(GLuint), "framebuffers")]),
1153 WglFunction(Void, "glGenRenderbuffers", [(GLsizei, "n"), (Pointer(GLuint), "renderbuffers")]),
1154 WglFunction(Void, "glGenRenderbuffersEXT", [(GLsizei, "n"), (Pointer(GLuint), "renderbuffers")]),
1155 WglFunction(Void, "glGenerateMipmap", [(GLenum, "target")]),
1156 WglFunction(Void, "glGenerateMipmapEXT", [(GLenum, "target")]),
1157 WglFunction(Void, "glGetFramebufferAttachmentParameteriv", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1158 WglFunction(Void, "glGetFramebufferAttachmentParameterivEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1159 WglFunction(Void, "glGetRenderbufferParameteriv", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1160 WglFunction(Void, "glGetRenderbufferParameterivEXT", [(GLenum, "target"), (GLenum, "pname"), (Pointer(GLint), "params")]),
1161 WglFunction(GLboolean, "glIsFramebuffer", [(GLuint, "framebuffer")]),
1162 WglFunction(GLboolean, "glIsFramebufferEXT", [(GLuint, "framebuffer")]),
1163 WglFunction(GLboolean, "glIsRenderbuffer", [(GLuint, "renderbuffer")]),
1164 WglFunction(GLboolean, "glIsRenderbufferEXT", [(GLuint, "renderbuffer")]),
1165 WglFunction(Void, "glRenderbufferStorage", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
1166 WglFunction(Void, "glRenderbufferStorageEXT", [(GLenum, "target"), (GLenum, "internalformat"), (GLsizei, "width"), (GLsizei, "height")]),
1167 WglFunction(Void, "glBlitFramebuffer", [(GLint, "srcX0"), (GLint, "srcY0"), (GLint, "srcX1"), (GLint, "srcY1"), (GLint, "dstX0"), (GLint, "dstY0"), (GLint, "dstX1"), (GLint, "dstY1"), (GLbitfield, "mask"), (GLenum, "filter")]),
1168 WglFunction(Void, "glBlitFramebufferEXT", [(GLint, "srcX0"), (GLint, "srcY0"), (GLint, "srcX1"), (GLint, "srcY1"), (GLint, "dstX0"), (GLint, "dstY0"), (GLint, "dstX1"), (GLint, "dstY1"), (GLbitfield, "mask"), (GLenum, "filter")]),
1169 WglFunction(Void, "glBufferParameteriAPPLE", [(GLenum, "target"), (GLenum, "pname"), (GLint, "param")]),
1170 WglFunction(Void, "glFlushMappedBufferRangeAPPLE", [(GLenum, "target"), (GLintptr, "offset"), (GLsizeiptr, "size")]),
1171 WglFunction(Void, "glFramebufferTextureLayer", [(GLenum, "target"), (GLenum, "attachment"), (GLuint, "texture"), (GLint, "level"), (GLint, "layer")]),
1172 WglFunction(Void, "glFramebufferTextureLayerEXT", [(GLenum, "target"), (GLenum, "attachment"), (GLuint, "texture"), (GLint, "level"), (GLint, "layer")]),
1173 WglFunction(Void, "glProvokingVertexEXT", [(GLenum, "mode")]),
1174 WglFunction(Void, "glProvokingVertex", [(GLenum, "mode")]),
1175 WglFunction(Void, "glGetTexParameterPointervAPPLE", [(GLenum, "target"), (GLenum, "pname"), (Pointer(Pointer(GLvoid)), "params")]),
1176 WglFunction(Void, "glTextureRangeAPPLE", [(GLenum, "target"), (GLsizei, "length"), (Pointer(GLvoid), "pointer")]),
1177 WglFunction(Void, "glStencilFuncSeparateATI", [(GLenum, "frontfunc"), (GLenum, "backfunc"), (GLint, "ref"), (GLuint, "mask")]),
1178 WglFunction(Void, "glProgramEnvParameters4fvEXT", [(GLenum, "target"), (GLuint, "index"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "params")]),
1179 WglFunction(Void, "glProgramLocalParameters4fvEXT", [(GLenum, "target"), (GLuint, "index"), (GLsizei, "count"), (Pointer(Const(GLfloat)), "params")]),
1180 WglFunction(Void, "glGetQueryObjecti64vEXT", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLint64EXT), "params")]),
1181 WglFunction(Void, "glGetQueryObjectui64vEXT", [(GLuint, "id"), (GLenum, "pname"), (Pointer(GLuint64EXT), "params")]),
1182 # WGL_ARB_extensions_string
1183 WglFunction(Const(String), "wglGetExtensionsStringARB", [(HDC, "hdc")]),
1185 WglFunction(HPBUFFERARB, "wglCreatePbufferARB", [(HDC, "hDC"), (Int, "iPixelFormat"), (Int, "iWidth"), (Int, "iHeight"), (Pointer(Const(Int)), "piAttribList")]),
1186 WglFunction(HDC, "wglGetPbufferDCARB", [(HPBUFFERARB, "hPbuffer")]),
1187 WglFunction(Int, "wglReleasePbufferDCARB", [(HPBUFFERARB, "hPbuffer"), (HDC, "hDC")]),
1188 WglFunction(BOOL, "wglDestroyPbufferARB", [(HPBUFFERARB, "hPbuffer")]),
1189 WglFunction(BOOL, "wglQueryPbufferARB", [(HPBUFFERARB, "hPbuffer"), (Int, "iAttribute"), (Pointer(Int), "piValue")]),
1190 # WGL_ARB_pixel_format
1191 WglFunction(BOOL, "wglGetPixelFormatAttribivARB", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Pointer(attribute), "piAttributes"), (OutPointer(Int), "piValues")]),
1192 WglFunction(BOOL, "wglGetPixelFormatAttribfvARB", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Pointer(attribute), "piAttributes"), (OutPointer(FLOAT), "pfValues")]),
1193 WglFunction(BOOL, "wglChoosePixelFormatARB", [(HDC, "hdc"), (Pointer(Const(Int)), "piAttribIList"), (Pointer(Const(FLOAT)), "pfAttribFList"), (UINT, "nMaxFormats"), (Pointer(Int), "piFormats"), (Pointer(UINT), "nNumFormats")]),
1194 # WGL_EXT_extensions_string
1195 WglFunction(Const(String), "wglGetExtensionsStringEXT", []),
1196 # WGL_EXT_pixel_format
1197 WglFunction(BOOL, "wglGetPixelFormatAttribivEXT", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Pointer(attribute), "piAttributes"), (OutPointer(Int), "piValues")]),
1198 WglFunction(BOOL, "wglGetPixelFormatAttribfvEXT", [(HDC, "hdc"), (Int, "iPixelFormat"), (Int, "iLayerPlane"), (UINT, "nAttributes"), (Pointer(attribute), "piAttributes"), (OutPointer(FLOAT), "pfValues")]),
1199 WglFunction(BOOL, "wglChoosePixelFormatEXT", [(HDC, "hdc"), (Pointer(Const(Int)), "piAttribIList"), (Pointer(Const(FLOAT)), "pfAttribFList"), (UINT, "nMaxFormats"), (Pointer(Int), "piFormats"), (Pointer(UINT), "nNumFormats")]),
1202 if __name__ == '__main__':
1204 print '#define _GDI32_'
1206 print '#include <windows.h>'
1207 print '#include <tchar.h>'
1208 print '#include <GL/gl.h>'
1209 print '#include "glext.h"'
1210 print '#include "wglext.h"'
1212 print '#include "log.hpp"'
1214 print 'extern "C" {'