1 // Generated Code - DO NOT EDIT !!
2 // generated by 'emugen'
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include "gl_client_context.h"
6 
7 extern "C" {
8 	void glAlphaFunc(GLenum func, GLclampf ref);
9 	void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
10 	void glClearDepthf(GLclampf depth);
11 	void glClipPlanef(GLenum plane, const GLfloat* equation);
12 	void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
13 	void glDepthRangef(GLclampf zNear, GLclampf zFar);
14 	void glFogf(GLenum pname, GLfloat param);
15 	void glFogfv(GLenum pname, const GLfloat* params);
16 	void glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
17 	void glGetClipPlanef(GLenum pname, GLfloat* eqn);
18 	void glGetFloatv(GLenum pname, GLfloat* params);
19 	void glGetLightfv(GLenum light, GLenum pname, GLfloat* params);
20 	void glGetMaterialfv(GLenum face, GLenum pname, GLfloat* params);
21 	void glGetTexEnvfv(GLenum env, GLenum pname, GLfloat* params);
22 	void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params);
23 	void glLightModelf(GLenum pname, GLfloat param);
24 	void glLightModelfv(GLenum pname, const GLfloat* params);
25 	void glLightf(GLenum light, GLenum pname, GLfloat param);
26 	void glLightfv(GLenum light, GLenum pname, const GLfloat* params);
27 	void glLineWidth(GLfloat width);
28 	void glLoadMatrixf(const GLfloat* m);
29 	void glMaterialf(GLenum face, GLenum pname, GLfloat param);
30 	void glMaterialfv(GLenum face, GLenum pname, const GLfloat* params);
31 	void glMultMatrixf(const GLfloat* m);
32 	void glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
33 	void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz);
34 	void glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
35 	void glPointParameterf(GLenum pname, GLfloat param);
36 	void glPointParameterfv(GLenum pname, const GLfloat* params);
37 	void glPointSize(GLfloat size);
38 	void glPolygonOffset(GLfloat factor, GLfloat units);
39 	void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
40 	void glScalef(GLfloat x, GLfloat y, GLfloat z);
41 	void glTexEnvf(GLenum target, GLenum pname, GLfloat param);
42 	void glTexEnvfv(GLenum target, GLenum pname, const GLfloat* params);
43 	void glTexParameterf(GLenum target, GLenum pname, GLfloat param);
44 	void glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params);
45 	void glTranslatef(GLfloat x, GLfloat y, GLfloat z);
46 	void glActiveTexture(GLenum texture);
47 	void glAlphaFuncx(GLenum func, GLclampx ref);
48 	void glBindBuffer(GLenum target, GLuint buffer);
49 	void glBindTexture(GLenum target, GLuint texture);
50 	void glBlendFunc(GLenum sfactor, GLenum dfactor);
51 	void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
52 	void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
53 	void glClear(GLbitfield mask);
54 	void glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
55 	void glClearDepthx(GLclampx depth);
56 	void glClearStencil(GLint s);
57 	void glClientActiveTexture(GLenum texture);
58 	void glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
59 	void glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
60 	void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
61 	void glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
62 	void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data);
63 	void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data);
64 	void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
65 	void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
66 	void glCullFace(GLenum mode);
67 	void glDeleteBuffers(GLsizei n, const GLuint* buffers);
68 	void glDeleteTextures(GLsizei n, const GLuint* textures);
69 	void glDepthFunc(GLenum func);
70 	void glDepthMask(GLboolean flag);
71 	void glDepthRangex(GLclampx zNear, GLclampx zFar);
72 	void glDisable(GLenum cap);
73 	void glDisableClientState(GLenum array);
74 	void glDrawArrays(GLenum mode, GLint first, GLsizei count);
75 	void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
76 	void glEnable(GLenum cap);
77 	void glEnableClientState(GLenum array);
78 	void glFinish();
79 	void glFlush();
80 	void glFogx(GLenum pname, GLfixed param);
81 	void glFogxv(GLenum pname, const GLfixed* params);
82 	void glFrontFace(GLenum mode);
83 	void glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
84 	void glGetBooleanv(GLenum pname, GLboolean* params);
85 	void glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params);
86 	void glClipPlanex(GLenum pname, const GLfixed* eqn);
87 	void glGenBuffers(GLsizei n, GLuint* buffers);
88 	void glGenTextures(GLsizei n, GLuint* textures);
89 	GLenum glGetError();
90 	void glGetFixedv(GLenum pname, GLfixed* params);
91 	void glGetIntegerv(GLenum pname, GLint* params);
92 	void glGetLightxv(GLenum light, GLenum pname, GLfixed* params);
93 	void glGetMaterialxv(GLenum face, GLenum pname, GLfixed* params);
94 	void glGetPointerv(GLenum pname, GLvoid** params);
95 	const GLubyte* glGetString(GLenum name);
96 	void glGetTexEnviv(GLenum env, GLenum pname, GLint* params);
97 	void glGetTexEnvxv(GLenum env, GLenum pname, GLfixed* params);
98 	void glGetTexParameteriv(GLenum target, GLenum pname, GLint* params);
99 	void glGetTexParameterxv(GLenum target, GLenum pname, GLfixed* params);
100 	void glHint(GLenum target, GLenum mode);
101 	GLboolean glIsBuffer(GLuint buffer);
102 	GLboolean glIsEnabled(GLenum cap);
103 	GLboolean glIsTexture(GLuint texture);
104 	void glLightModelx(GLenum pname, GLfixed param);
105 	void glLightModelxv(GLenum pname, const GLfixed* params);
106 	void glLightx(GLenum light, GLenum pname, GLfixed param);
107 	void glLightxv(GLenum light, GLenum pname, const GLfixed* params);
108 	void glLineWidthx(GLfixed width);
109 	void glLoadIdentity();
110 	void glLoadMatrixx(const GLfixed* m);
111 	void glLogicOp(GLenum opcode);
112 	void glMaterialx(GLenum face, GLenum pname, GLfixed param);
113 	void glMaterialxv(GLenum face, GLenum pname, const GLfixed* params);
114 	void glMatrixMode(GLenum mode);
115 	void glMultMatrixx(const GLfixed* m);
116 	void glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
117 	void glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz);
118 	void glNormalPointer(GLenum type, GLsizei stride, const GLvoid* pointer);
119 	void glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
120 	void glPixelStorei(GLenum pname, GLint param);
121 	void glPointParameterx(GLenum pname, GLfixed param);
122 	void glPointParameterxv(GLenum pname, const GLfixed* params);
123 	void glPointSizex(GLfixed size);
124 	void glPolygonOffsetx(GLfixed factor, GLfixed units);
125 	void glPopMatrix();
126 	void glPushMatrix();
127 	void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
128 	void glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
129 	void glSampleCoverage(GLclampf value, GLboolean invert);
130 	void glSampleCoveragex(GLclampx value, GLboolean invert);
131 	void glScalex(GLfixed x, GLfixed y, GLfixed z);
132 	void glScissor(GLint x, GLint y, GLsizei width, GLsizei height);
133 	void glShadeModel(GLenum mode);
134 	void glStencilFunc(GLenum func, GLint ref, GLuint mask);
135 	void glStencilMask(GLuint mask);
136 	void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass);
137 	void glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
138 	void glTexEnvi(GLenum target, GLenum pname, GLint param);
139 	void glTexEnvx(GLenum target, GLenum pname, GLfixed param);
140 	void glTexEnviv(GLenum target, GLenum pname, const GLint* params);
141 	void glTexEnvxv(GLenum target, GLenum pname, const GLfixed* params);
142 	void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels);
143 	void glTexParameteri(GLenum target, GLenum pname, GLint param);
144 	void glTexParameterx(GLenum target, GLenum pname, GLfixed param);
145 	void glTexParameteriv(GLenum target, GLenum pname, const GLint* params);
146 	void glTexParameterxv(GLenum target, GLenum pname, const GLfixed* params);
147 	void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels);
148 	void glTranslatex(GLfixed x, GLfixed y, GLfixed z);
149 	void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
150 	void glViewport(GLint x, GLint y, GLsizei width, GLsizei height);
151 	void glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid* pointer);
152 	void glVertexPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset);
153 	void glColorPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset);
154 	void glNormalPointerOffset(GLenum type, GLsizei stride, GLuint offset);
155 	void glPointSizePointerOffset(GLenum type, GLsizei stride, GLuint offset);
156 	void glTexCoordPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset);
157 	void glWeightPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset);
158 	void glMatrixIndexPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset);
159 	void glVertexPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen);
160 	void glColorPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen);
161 	void glNormalPointerData(GLenum type, GLsizei stride, void* data, GLuint datalen);
162 	void glTexCoordPointerData(GLint unit, GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen);
163 	void glPointSizePointerData(GLenum type, GLsizei stride, void* data, GLuint datalen);
164 	void glWeightPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen);
165 	void glMatrixIndexPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen);
166 	void glDrawElementsOffset(GLenum mode, GLsizei count, GLenum type, GLuint offset);
167 	void glDrawElementsData(GLenum mode, GLsizei count, GLenum type, void* data, GLuint datalen);
168 	void glGetCompressedTextureFormats(int count, GLint* formats);
169 	int glFinishRoundTrip();
170 	void glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha);
171 	void glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
172 	void glBlendEquationOES(GLenum mode);
173 	void glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
174 	void glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height);
175 	void glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
176 	void glDrawTexsvOES(const GLshort* coords);
177 	void glDrawTexivOES(const GLint* coords);
178 	void glDrawTexxvOES(const GLfixed* coords);
179 	void glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
180 	void glDrawTexfvOES(const GLfloat* coords);
181 	void glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
182 	void glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
183 	void glAlphaFuncxOES(GLenum func, GLclampx ref);
184 	void glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
185 	void glClearDepthxOES(GLclampx depth);
186 	void glClipPlanexOES(GLenum plane, const GLfixed* equation);
187 	void glClipPlanexIMG(GLenum plane, const GLfixed* equation);
188 	void glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
189 	void glDepthRangexOES(GLclampx zNear, GLclampx zFar);
190 	void glFogxOES(GLenum pname, GLfixed param);
191 	void glFogxvOES(GLenum pname, const GLfixed* params);
192 	void glFrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
193 	void glGetClipPlanexOES(GLenum pname, GLfixed* eqn);
194 	void glGetClipPlanex(GLenum pname, GLfixed* eqn);
195 	void glGetFixedvOES(GLenum pname, GLfixed* params);
196 	void glGetLightxvOES(GLenum light, GLenum pname, GLfixed* params);
197 	void glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed* params);
198 	void glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed* params);
199 	void glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed* params);
200 	void glLightModelxOES(GLenum pname, GLfixed param);
201 	void glLightModelxvOES(GLenum pname, const GLfixed* params);
202 	void glLightxOES(GLenum light, GLenum pname, GLfixed param);
203 	void glLightxvOES(GLenum light, GLenum pname, const GLfixed* params);
204 	void glLineWidthxOES(GLfixed width);
205 	void glLoadMatrixxOES(const GLfixed* m);
206 	void glMaterialxOES(GLenum face, GLenum pname, GLfixed param);
207 	void glMaterialxvOES(GLenum face, GLenum pname, const GLfixed* params);
208 	void glMultMatrixxOES(const GLfixed* m);
209 	void glMultiTexCoord4xOES(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
210 	void glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz);
211 	void glOrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
212 	void glPointParameterxOES(GLenum pname, GLfixed param);
213 	void glPointParameterxvOES(GLenum pname, const GLfixed* params);
214 	void glPointSizexOES(GLfixed size);
215 	void glPolygonOffsetxOES(GLfixed factor, GLfixed units);
216 	void glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
217 	void glSampleCoveragexOES(GLclampx value, GLboolean invert);
218 	void glScalexOES(GLfixed x, GLfixed y, GLfixed z);
219 	void glTexEnvxOES(GLenum target, GLenum pname, GLfixed param);
220 	void glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed* params);
221 	void glTexParameterxOES(GLenum target, GLenum pname, GLfixed param);
222 	void glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed* params);
223 	void glTranslatexOES(GLfixed x, GLfixed y, GLfixed z);
224 	GLboolean glIsRenderbufferOES(GLuint renderbuffer);
225 	void glBindRenderbufferOES(GLenum target, GLuint renderbuffer);
226 	void glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers);
227 	void glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers);
228 	void glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
229 	void glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params);
230 	GLboolean glIsFramebufferOES(GLuint framebuffer);
231 	void glBindFramebufferOES(GLenum target, GLuint framebuffer);
232 	void glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers);
233 	void glGenFramebuffersOES(GLsizei n, GLuint* framebuffers);
234 	GLenum glCheckFramebufferStatusOES(GLenum target);
235 	void glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
236 	void glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
237 	void glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params);
238 	void glGenerateMipmapOES(GLenum target);
239 	void* glMapBufferOES(GLenum target, GLenum access);
240 	GLboolean glUnmapBufferOES(GLenum target);
241 	void glGetBufferPointervOES(GLenum target, GLenum pname, GLvoid** params);
242 	void glCurrentPaletteMatrixOES(GLuint matrixpaletteindex);
243 	void glLoadPaletteFromModelViewMatrixOES();
244 	void glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
245 	void glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer);
246 	GLbitfield glQueryMatrixxOES(GLfixed* mantissa, GLint* exponent);
247 	void glDepthRangefOES(GLclampf zNear, GLclampf zFar);
248 	void glFrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
249 	void glOrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
250 	void glClipPlanefOES(GLenum plane, const GLfloat* equation);
251 	void glClipPlanefIMG(GLenum plane, const GLfloat* equation);
252 	void glGetClipPlanefOES(GLenum pname, GLfloat* eqn);
253 	void glClearDepthfOES(GLclampf depth);
254 	void glTexGenfOES(GLenum coord, GLenum pname, GLfloat param);
255 	void glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat* params);
256 	void glTexGeniOES(GLenum coord, GLenum pname, GLint param);
257 	void glTexGenivOES(GLenum coord, GLenum pname, const GLint* params);
258 	void glTexGenxOES(GLenum coord, GLenum pname, GLfixed param);
259 	void glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed* params);
260 	void glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat* params);
261 	void glGetTexGenivOES(GLenum coord, GLenum pname, GLint* params);
262 	void glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed* params);
263 	void glBindVertexArrayOES(GLuint array);
264 	void glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays);
265 	void glGenVertexArraysOES(GLsizei n, GLuint* arrays);
266 	GLboolean glIsVertexArrayOES(GLuint array);
267 	void glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum* attachments);
268 	void glMultiDrawArraysEXT(GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount);
269 	void glMultiDrawElementsEXT(GLenum mode, const GLsizei* count, GLenum type, const GLvoid* const* indices, GLsizei primcount);
270 	void glMultiDrawArraysSUN(GLenum mode, GLint* first, GLsizei* count, GLsizei primcount);
271 	void glMultiDrawElementsSUN(GLenum mode, const GLsizei* count, GLenum type, const GLvoid** indices, GLsizei primcount);
272 	void glRenderbufferStorageMultisampleIMG(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
273 	void glFramebufferTexture2DMultisampleIMG(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples);
274 	void glDeleteFencesNV(GLsizei n, const GLuint* fences);
275 	void glGenFencesNV(GLsizei n, GLuint* fences);
276 	GLboolean glIsFenceNV(GLuint fence);
277 	GLboolean glTestFenceNV(GLuint fence);
278 	void glGetFenceivNV(GLuint fence, GLenum pname, GLint* params);
279 	void glFinishFenceNV(GLuint fence);
280 	void glSetFenceNV(GLuint fence, GLenum condition);
281 	void glGetDriverControlsQCOM(GLint* num, GLsizei size, GLuint* driverControls);
282 	void glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei* length, GLchar* driverControlString);
283 	void glEnableDriverControlQCOM(GLuint driverControl);
284 	void glDisableDriverControlQCOM(GLuint driverControl);
285 	void glExtGetTexturesQCOM(GLuint* textures, GLint maxTextures, GLint* numTextures);
286 	void glExtGetBuffersQCOM(GLuint* buffers, GLint maxBuffers, GLint* numBuffers);
287 	void glExtGetRenderbuffersQCOM(GLuint* renderbuffers, GLint maxRenderbuffers, GLint* numRenderbuffers);
288 	void glExtGetFramebuffersQCOM(GLuint* framebuffers, GLint maxFramebuffers, GLint* numFramebuffers);
289 	void glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint* params);
290 	void glExtTexObjectStateOverrideiQCOM(GLenum target, GLenum pname, GLint param);
291 	void glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid* texels);
292 	void glExtGetBufferPointervQCOM(GLenum target, GLvoid** params);
293 	void glExtGetShadersQCOM(GLuint* shaders, GLint maxShaders, GLint* numShaders);
294 	void glExtGetProgramsQCOM(GLuint* programs, GLint maxPrograms, GLint* numPrograms);
295 	GLboolean glExtIsProgramBinaryQCOM(GLuint program);
296 	void glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar* source, GLint* length);
297 	void glStartTilingQCOM(GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask);
298 	void glEndTilingQCOM(GLbitfield preserveMask);
299 };
300 
301 #ifndef GET_CONTEXT
302 static gl_client_context_t::CONTEXT_ACCESSOR_TYPE *getCurrentContext = NULL;
setContextAccessor(CONTEXT_ACCESSOR_TYPE * f)303 void gl_client_context_t::setContextAccessor(CONTEXT_ACCESSOR_TYPE *f) { getCurrentContext = f; }
304 #define GET_CONTEXT gl_client_context_t * ctx = getCurrentContext()
305 #endif
306 
glAlphaFunc(GLenum func,GLclampf ref)307 void glAlphaFunc(GLenum func, GLclampf ref)
308 {
309 	GET_CONTEXT;
310 	ctx->glAlphaFunc(ctx, func, ref);
311 }
312 
glClearColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)313 void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
314 {
315 	GET_CONTEXT;
316 	ctx->glClearColor(ctx, red, green, blue, alpha);
317 }
318 
glClearDepthf(GLclampf depth)319 void glClearDepthf(GLclampf depth)
320 {
321 	GET_CONTEXT;
322 	ctx->glClearDepthf(ctx, depth);
323 }
324 
glClipPlanef(GLenum plane,const GLfloat * equation)325 void glClipPlanef(GLenum plane, const GLfloat* equation)
326 {
327 	GET_CONTEXT;
328 	ctx->glClipPlanef(ctx, plane, equation);
329 }
330 
glColor4f(GLfloat red,GLfloat green,GLfloat blue,GLfloat alpha)331 void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
332 {
333 	GET_CONTEXT;
334 	ctx->glColor4f(ctx, red, green, blue, alpha);
335 }
336 
glDepthRangef(GLclampf zNear,GLclampf zFar)337 void glDepthRangef(GLclampf zNear, GLclampf zFar)
338 {
339 	GET_CONTEXT;
340 	ctx->glDepthRangef(ctx, zNear, zFar);
341 }
342 
glFogf(GLenum pname,GLfloat param)343 void glFogf(GLenum pname, GLfloat param)
344 {
345 	GET_CONTEXT;
346 	ctx->glFogf(ctx, pname, param);
347 }
348 
glFogfv(GLenum pname,const GLfloat * params)349 void glFogfv(GLenum pname, const GLfloat* params)
350 {
351 	GET_CONTEXT;
352 	ctx->glFogfv(ctx, pname, params);
353 }
354 
glFrustumf(GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat zNear,GLfloat zFar)355 void glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
356 {
357 	GET_CONTEXT;
358 	ctx->glFrustumf(ctx, left, right, bottom, top, zNear, zFar);
359 }
360 
glGetClipPlanef(GLenum pname,GLfloat * eqn)361 void glGetClipPlanef(GLenum pname, GLfloat* eqn)
362 {
363 	GET_CONTEXT;
364 	ctx->glGetClipPlanef(ctx, pname, eqn);
365 }
366 
glGetFloatv(GLenum pname,GLfloat * params)367 void glGetFloatv(GLenum pname, GLfloat* params)
368 {
369 	GET_CONTEXT;
370 	ctx->glGetFloatv(ctx, pname, params);
371 }
372 
glGetLightfv(GLenum light,GLenum pname,GLfloat * params)373 void glGetLightfv(GLenum light, GLenum pname, GLfloat* params)
374 {
375 	GET_CONTEXT;
376 	ctx->glGetLightfv(ctx, light, pname, params);
377 }
378 
glGetMaterialfv(GLenum face,GLenum pname,GLfloat * params)379 void glGetMaterialfv(GLenum face, GLenum pname, GLfloat* params)
380 {
381 	GET_CONTEXT;
382 	ctx->glGetMaterialfv(ctx, face, pname, params);
383 }
384 
glGetTexEnvfv(GLenum env,GLenum pname,GLfloat * params)385 void glGetTexEnvfv(GLenum env, GLenum pname, GLfloat* params)
386 {
387 	GET_CONTEXT;
388 	ctx->glGetTexEnvfv(ctx, env, pname, params);
389 }
390 
glGetTexParameterfv(GLenum target,GLenum pname,GLfloat * params)391 void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
392 {
393 	GET_CONTEXT;
394 	ctx->glGetTexParameterfv(ctx, target, pname, params);
395 }
396 
glLightModelf(GLenum pname,GLfloat param)397 void glLightModelf(GLenum pname, GLfloat param)
398 {
399 	GET_CONTEXT;
400 	ctx->glLightModelf(ctx, pname, param);
401 }
402 
glLightModelfv(GLenum pname,const GLfloat * params)403 void glLightModelfv(GLenum pname, const GLfloat* params)
404 {
405 	GET_CONTEXT;
406 	ctx->glLightModelfv(ctx, pname, params);
407 }
408 
glLightf(GLenum light,GLenum pname,GLfloat param)409 void glLightf(GLenum light, GLenum pname, GLfloat param)
410 {
411 	GET_CONTEXT;
412 	ctx->glLightf(ctx, light, pname, param);
413 }
414 
glLightfv(GLenum light,GLenum pname,const GLfloat * params)415 void glLightfv(GLenum light, GLenum pname, const GLfloat* params)
416 {
417 	GET_CONTEXT;
418 	ctx->glLightfv(ctx, light, pname, params);
419 }
420 
glLineWidth(GLfloat width)421 void glLineWidth(GLfloat width)
422 {
423 	GET_CONTEXT;
424 	ctx->glLineWidth(ctx, width);
425 }
426 
glLoadMatrixf(const GLfloat * m)427 void glLoadMatrixf(const GLfloat* m)
428 {
429 	GET_CONTEXT;
430 	ctx->glLoadMatrixf(ctx, m);
431 }
432 
glMaterialf(GLenum face,GLenum pname,GLfloat param)433 void glMaterialf(GLenum face, GLenum pname, GLfloat param)
434 {
435 	GET_CONTEXT;
436 	ctx->glMaterialf(ctx, face, pname, param);
437 }
438 
glMaterialfv(GLenum face,GLenum pname,const GLfloat * params)439 void glMaterialfv(GLenum face, GLenum pname, const GLfloat* params)
440 {
441 	GET_CONTEXT;
442 	ctx->glMaterialfv(ctx, face, pname, params);
443 }
444 
glMultMatrixf(const GLfloat * m)445 void glMultMatrixf(const GLfloat* m)
446 {
447 	GET_CONTEXT;
448 	ctx->glMultMatrixf(ctx, m);
449 }
450 
glMultiTexCoord4f(GLenum target,GLfloat s,GLfloat t,GLfloat r,GLfloat q)451 void glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
452 {
453 	GET_CONTEXT;
454 	ctx->glMultiTexCoord4f(ctx, target, s, t, r, q);
455 }
456 
glNormal3f(GLfloat nx,GLfloat ny,GLfloat nz)457 void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
458 {
459 	GET_CONTEXT;
460 	ctx->glNormal3f(ctx, nx, ny, nz);
461 }
462 
glOrthof(GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat zNear,GLfloat zFar)463 void glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
464 {
465 	GET_CONTEXT;
466 	ctx->glOrthof(ctx, left, right, bottom, top, zNear, zFar);
467 }
468 
glPointParameterf(GLenum pname,GLfloat param)469 void glPointParameterf(GLenum pname, GLfloat param)
470 {
471 	GET_CONTEXT;
472 	ctx->glPointParameterf(ctx, pname, param);
473 }
474 
glPointParameterfv(GLenum pname,const GLfloat * params)475 void glPointParameterfv(GLenum pname, const GLfloat* params)
476 {
477 	GET_CONTEXT;
478 	ctx->glPointParameterfv(ctx, pname, params);
479 }
480 
glPointSize(GLfloat size)481 void glPointSize(GLfloat size)
482 {
483 	GET_CONTEXT;
484 	ctx->glPointSize(ctx, size);
485 }
486 
glPolygonOffset(GLfloat factor,GLfloat units)487 void glPolygonOffset(GLfloat factor, GLfloat units)
488 {
489 	GET_CONTEXT;
490 	ctx->glPolygonOffset(ctx, factor, units);
491 }
492 
glRotatef(GLfloat angle,GLfloat x,GLfloat y,GLfloat z)493 void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
494 {
495 	GET_CONTEXT;
496 	ctx->glRotatef(ctx, angle, x, y, z);
497 }
498 
glScalef(GLfloat x,GLfloat y,GLfloat z)499 void glScalef(GLfloat x, GLfloat y, GLfloat z)
500 {
501 	GET_CONTEXT;
502 	ctx->glScalef(ctx, x, y, z);
503 }
504 
glTexEnvf(GLenum target,GLenum pname,GLfloat param)505 void glTexEnvf(GLenum target, GLenum pname, GLfloat param)
506 {
507 	GET_CONTEXT;
508 	ctx->glTexEnvf(ctx, target, pname, param);
509 }
510 
glTexEnvfv(GLenum target,GLenum pname,const GLfloat * params)511 void glTexEnvfv(GLenum target, GLenum pname, const GLfloat* params)
512 {
513 	GET_CONTEXT;
514 	ctx->glTexEnvfv(ctx, target, pname, params);
515 }
516 
glTexParameterf(GLenum target,GLenum pname,GLfloat param)517 void glTexParameterf(GLenum target, GLenum pname, GLfloat param)
518 {
519 	GET_CONTEXT;
520 	ctx->glTexParameterf(ctx, target, pname, param);
521 }
522 
glTexParameterfv(GLenum target,GLenum pname,const GLfloat * params)523 void glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
524 {
525 	GET_CONTEXT;
526 	ctx->glTexParameterfv(ctx, target, pname, params);
527 }
528 
glTranslatef(GLfloat x,GLfloat y,GLfloat z)529 void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
530 {
531 	GET_CONTEXT;
532 	ctx->glTranslatef(ctx, x, y, z);
533 }
534 
glActiveTexture(GLenum texture)535 void glActiveTexture(GLenum texture)
536 {
537 	GET_CONTEXT;
538 	ctx->glActiveTexture(ctx, texture);
539 }
540 
glAlphaFuncx(GLenum func,GLclampx ref)541 void glAlphaFuncx(GLenum func, GLclampx ref)
542 {
543 	GET_CONTEXT;
544 	ctx->glAlphaFuncx(ctx, func, ref);
545 }
546 
glBindBuffer(GLenum target,GLuint buffer)547 void glBindBuffer(GLenum target, GLuint buffer)
548 {
549 	GET_CONTEXT;
550 	ctx->glBindBuffer(ctx, target, buffer);
551 }
552 
glBindTexture(GLenum target,GLuint texture)553 void glBindTexture(GLenum target, GLuint texture)
554 {
555 	GET_CONTEXT;
556 	ctx->glBindTexture(ctx, target, texture);
557 }
558 
glBlendFunc(GLenum sfactor,GLenum dfactor)559 void glBlendFunc(GLenum sfactor, GLenum dfactor)
560 {
561 	GET_CONTEXT;
562 	ctx->glBlendFunc(ctx, sfactor, dfactor);
563 }
564 
glBufferData(GLenum target,GLsizeiptr size,const GLvoid * data,GLenum usage)565 void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
566 {
567 	GET_CONTEXT;
568 	ctx->glBufferData(ctx, target, size, data, usage);
569 }
570 
glBufferSubData(GLenum target,GLintptr offset,GLsizeiptr size,const GLvoid * data)571 void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
572 {
573 	GET_CONTEXT;
574 	ctx->glBufferSubData(ctx, target, offset, size, data);
575 }
576 
glClear(GLbitfield mask)577 void glClear(GLbitfield mask)
578 {
579 	GET_CONTEXT;
580 	ctx->glClear(ctx, mask);
581 }
582 
glClearColorx(GLclampx red,GLclampx green,GLclampx blue,GLclampx alpha)583 void glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
584 {
585 	GET_CONTEXT;
586 	ctx->glClearColorx(ctx, red, green, blue, alpha);
587 }
588 
glClearDepthx(GLclampx depth)589 void glClearDepthx(GLclampx depth)
590 {
591 	GET_CONTEXT;
592 	ctx->glClearDepthx(ctx, depth);
593 }
594 
glClearStencil(GLint s)595 void glClearStencil(GLint s)
596 {
597 	GET_CONTEXT;
598 	ctx->glClearStencil(ctx, s);
599 }
600 
glClientActiveTexture(GLenum texture)601 void glClientActiveTexture(GLenum texture)
602 {
603 	GET_CONTEXT;
604 	ctx->glClientActiveTexture(ctx, texture);
605 }
606 
glColor4ub(GLubyte red,GLubyte green,GLubyte blue,GLubyte alpha)607 void glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
608 {
609 	GET_CONTEXT;
610 	ctx->glColor4ub(ctx, red, green, blue, alpha);
611 }
612 
glColor4x(GLfixed red,GLfixed green,GLfixed blue,GLfixed alpha)613 void glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
614 {
615 	GET_CONTEXT;
616 	ctx->glColor4x(ctx, red, green, blue, alpha);
617 }
618 
glColorMask(GLboolean red,GLboolean green,GLboolean blue,GLboolean alpha)619 void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
620 {
621 	GET_CONTEXT;
622 	ctx->glColorMask(ctx, red, green, blue, alpha);
623 }
624 
glColorPointer(GLint size,GLenum type,GLsizei stride,const GLvoid * pointer)625 void glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
626 {
627 	GET_CONTEXT;
628 	ctx->glColorPointer(ctx, size, type, stride, pointer);
629 }
630 
glCompressedTexImage2D(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLint border,GLsizei imageSize,const GLvoid * data)631 void glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data)
632 {
633 	GET_CONTEXT;
634 	ctx->glCompressedTexImage2D(ctx, target, level, internalformat, width, height, border, imageSize, data);
635 }
636 
glCompressedTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLsizei imageSize,const GLvoid * data)637 void glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data)
638 {
639 	GET_CONTEXT;
640 	ctx->glCompressedTexSubImage2D(ctx, target, level, xoffset, yoffset, width, height, format, imageSize, data);
641 }
642 
glCopyTexImage2D(GLenum target,GLint level,GLenum internalformat,GLint x,GLint y,GLsizei width,GLsizei height,GLint border)643 void glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
644 {
645 	GET_CONTEXT;
646 	ctx->glCopyTexImage2D(ctx, target, level, internalformat, x, y, width, height, border);
647 }
648 
glCopyTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint x,GLint y,GLsizei width,GLsizei height)649 void glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
650 {
651 	GET_CONTEXT;
652 	ctx->glCopyTexSubImage2D(ctx, target, level, xoffset, yoffset, x, y, width, height);
653 }
654 
glCullFace(GLenum mode)655 void glCullFace(GLenum mode)
656 {
657 	GET_CONTEXT;
658 	ctx->glCullFace(ctx, mode);
659 }
660 
glDeleteBuffers(GLsizei n,const GLuint * buffers)661 void glDeleteBuffers(GLsizei n, const GLuint* buffers)
662 {
663 	GET_CONTEXT;
664 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
665 	ctx->glDeleteBuffers(ctx, n, buffers);
666 }
667 
glDeleteTextures(GLsizei n,const GLuint * textures)668 void glDeleteTextures(GLsizei n, const GLuint* textures)
669 {
670 	GET_CONTEXT;
671 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
672 	ctx->glDeleteTextures(ctx, n, textures);
673 }
674 
glDepthFunc(GLenum func)675 void glDepthFunc(GLenum func)
676 {
677 	GET_CONTEXT;
678 	ctx->glDepthFunc(ctx, func);
679 }
680 
glDepthMask(GLboolean flag)681 void glDepthMask(GLboolean flag)
682 {
683 	GET_CONTEXT;
684 	ctx->glDepthMask(ctx, flag);
685 }
686 
glDepthRangex(GLclampx zNear,GLclampx zFar)687 void glDepthRangex(GLclampx zNear, GLclampx zFar)
688 {
689 	GET_CONTEXT;
690 	ctx->glDepthRangex(ctx, zNear, zFar);
691 }
692 
glDisable(GLenum cap)693 void glDisable(GLenum cap)
694 {
695 	GET_CONTEXT;
696 	ctx->glDisable(ctx, cap);
697 }
698 
glDisableClientState(GLenum array)699 void glDisableClientState(GLenum array)
700 {
701 	GET_CONTEXT;
702 	ctx->glDisableClientState(ctx, array);
703 }
704 
glDrawArrays(GLenum mode,GLint first,GLsizei count)705 void glDrawArrays(GLenum mode, GLint first, GLsizei count)
706 {
707 	GET_CONTEXT;
708 	ctx->glDrawArrays(ctx, mode, first, count);
709 }
710 
glDrawElements(GLenum mode,GLsizei count,GLenum type,const GLvoid * indices)711 void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
712 {
713 	GET_CONTEXT;
714 	ctx->glDrawElements(ctx, mode, count, type, indices);
715 }
716 
glEnable(GLenum cap)717 void glEnable(GLenum cap)
718 {
719 	GET_CONTEXT;
720 	ctx->glEnable(ctx, cap);
721 }
722 
glEnableClientState(GLenum array)723 void glEnableClientState(GLenum array)
724 {
725 	GET_CONTEXT;
726 	ctx->glEnableClientState(ctx, array);
727 }
728 
glFinish()729 void glFinish()
730 {
731 	GET_CONTEXT;
732 	ctx->glFinish(ctx);
733 }
734 
glFlush()735 void glFlush()
736 {
737 	GET_CONTEXT;
738 	ctx->glFlush(ctx);
739 }
740 
glFogx(GLenum pname,GLfixed param)741 void glFogx(GLenum pname, GLfixed param)
742 {
743 	GET_CONTEXT;
744 	ctx->glFogx(ctx, pname, param);
745 }
746 
glFogxv(GLenum pname,const GLfixed * params)747 void glFogxv(GLenum pname, const GLfixed* params)
748 {
749 	GET_CONTEXT;
750 	ctx->glFogxv(ctx, pname, params);
751 }
752 
glFrontFace(GLenum mode)753 void glFrontFace(GLenum mode)
754 {
755 	GET_CONTEXT;
756 	ctx->glFrontFace(ctx, mode);
757 }
758 
glFrustumx(GLfixed left,GLfixed right,GLfixed bottom,GLfixed top,GLfixed zNear,GLfixed zFar)759 void glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
760 {
761 	GET_CONTEXT;
762 	ctx->glFrustumx(ctx, left, right, bottom, top, zNear, zFar);
763 }
764 
glGetBooleanv(GLenum pname,GLboolean * params)765 void glGetBooleanv(GLenum pname, GLboolean* params)
766 {
767 	GET_CONTEXT;
768 	ctx->glGetBooleanv(ctx, pname, params);
769 }
770 
glGetBufferParameteriv(GLenum target,GLenum pname,GLint * params)771 void glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
772 {
773 	GET_CONTEXT;
774 	ctx->glGetBufferParameteriv(ctx, target, pname, params);
775 }
776 
glClipPlanex(GLenum pname,const GLfixed * eqn)777 void glClipPlanex(GLenum pname, const GLfixed* eqn)
778 {
779 	GET_CONTEXT;
780 	ctx->glClipPlanex(ctx, pname, eqn);
781 }
782 
glGenBuffers(GLsizei n,GLuint * buffers)783 void glGenBuffers(GLsizei n, GLuint* buffers)
784 {
785 	GET_CONTEXT;
786 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
787 	ctx->glGenBuffers(ctx, n, buffers);
788 }
789 
glGenTextures(GLsizei n,GLuint * textures)790 void glGenTextures(GLsizei n, GLuint* textures)
791 {
792 	GET_CONTEXT;
793 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
794 	ctx->glGenTextures(ctx, n, textures);
795 }
796 
glGetError()797 GLenum glGetError()
798 {
799 	GET_CONTEXT;
800 	return ctx->glGetError(ctx);
801 }
802 
glGetFixedv(GLenum pname,GLfixed * params)803 void glGetFixedv(GLenum pname, GLfixed* params)
804 {
805 	GET_CONTEXT;
806 	ctx->glGetFixedv(ctx, pname, params);
807 }
808 
glGetIntegerv(GLenum pname,GLint * params)809 void glGetIntegerv(GLenum pname, GLint* params)
810 {
811 	GET_CONTEXT;
812 	ctx->glGetIntegerv(ctx, pname, params);
813 }
814 
glGetLightxv(GLenum light,GLenum pname,GLfixed * params)815 void glGetLightxv(GLenum light, GLenum pname, GLfixed* params)
816 {
817 	GET_CONTEXT;
818 	ctx->glGetLightxv(ctx, light, pname, params);
819 }
820 
glGetMaterialxv(GLenum face,GLenum pname,GLfixed * params)821 void glGetMaterialxv(GLenum face, GLenum pname, GLfixed* params)
822 {
823 	GET_CONTEXT;
824 	ctx->glGetMaterialxv(ctx, face, pname, params);
825 }
826 
glGetPointerv(GLenum pname,GLvoid ** params)827 void glGetPointerv(GLenum pname, GLvoid** params)
828 {
829 	GET_CONTEXT;
830 	ctx->glGetPointerv(ctx, pname, params);
831 }
832 
glGetString(GLenum name)833 const GLubyte* glGetString(GLenum name)
834 {
835 	GET_CONTEXT;
836 	return ctx->glGetString(ctx, name);
837 }
838 
glGetTexEnviv(GLenum env,GLenum pname,GLint * params)839 void glGetTexEnviv(GLenum env, GLenum pname, GLint* params)
840 {
841 	GET_CONTEXT;
842 	ctx->glGetTexEnviv(ctx, env, pname, params);
843 }
844 
glGetTexEnvxv(GLenum env,GLenum pname,GLfixed * params)845 void glGetTexEnvxv(GLenum env, GLenum pname, GLfixed* params)
846 {
847 	GET_CONTEXT;
848 	ctx->glGetTexEnvxv(ctx, env, pname, params);
849 }
850 
glGetTexParameteriv(GLenum target,GLenum pname,GLint * params)851 void glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
852 {
853 	GET_CONTEXT;
854 	ctx->glGetTexParameteriv(ctx, target, pname, params);
855 }
856 
glGetTexParameterxv(GLenum target,GLenum pname,GLfixed * params)857 void glGetTexParameterxv(GLenum target, GLenum pname, GLfixed* params)
858 {
859 	GET_CONTEXT;
860 	ctx->glGetTexParameterxv(ctx, target, pname, params);
861 }
862 
glHint(GLenum target,GLenum mode)863 void glHint(GLenum target, GLenum mode)
864 {
865 	GET_CONTEXT;
866 	ctx->glHint(ctx, target, mode);
867 }
868 
glIsBuffer(GLuint buffer)869 GLboolean glIsBuffer(GLuint buffer)
870 {
871 	GET_CONTEXT;
872 	return ctx->glIsBuffer(ctx, buffer);
873 }
874 
glIsEnabled(GLenum cap)875 GLboolean glIsEnabled(GLenum cap)
876 {
877 	GET_CONTEXT;
878 	return ctx->glIsEnabled(ctx, cap);
879 }
880 
glIsTexture(GLuint texture)881 GLboolean glIsTexture(GLuint texture)
882 {
883 	GET_CONTEXT;
884 	return ctx->glIsTexture(ctx, texture);
885 }
886 
glLightModelx(GLenum pname,GLfixed param)887 void glLightModelx(GLenum pname, GLfixed param)
888 {
889 	GET_CONTEXT;
890 	ctx->glLightModelx(ctx, pname, param);
891 }
892 
glLightModelxv(GLenum pname,const GLfixed * params)893 void glLightModelxv(GLenum pname, const GLfixed* params)
894 {
895 	GET_CONTEXT;
896 	ctx->glLightModelxv(ctx, pname, params);
897 }
898 
glLightx(GLenum light,GLenum pname,GLfixed param)899 void glLightx(GLenum light, GLenum pname, GLfixed param)
900 {
901 	GET_CONTEXT;
902 	ctx->glLightx(ctx, light, pname, param);
903 }
904 
glLightxv(GLenum light,GLenum pname,const GLfixed * params)905 void glLightxv(GLenum light, GLenum pname, const GLfixed* params)
906 {
907 	GET_CONTEXT;
908 	ctx->glLightxv(ctx, light, pname, params);
909 }
910 
glLineWidthx(GLfixed width)911 void glLineWidthx(GLfixed width)
912 {
913 	GET_CONTEXT;
914 	ctx->glLineWidthx(ctx, width);
915 }
916 
glLoadIdentity()917 void glLoadIdentity()
918 {
919 	GET_CONTEXT;
920 	ctx->glLoadIdentity(ctx);
921 }
922 
glLoadMatrixx(const GLfixed * m)923 void glLoadMatrixx(const GLfixed* m)
924 {
925 	GET_CONTEXT;
926 	ctx->glLoadMatrixx(ctx, m);
927 }
928 
glLogicOp(GLenum opcode)929 void glLogicOp(GLenum opcode)
930 {
931 	GET_CONTEXT;
932 	ctx->glLogicOp(ctx, opcode);
933 }
934 
glMaterialx(GLenum face,GLenum pname,GLfixed param)935 void glMaterialx(GLenum face, GLenum pname, GLfixed param)
936 {
937 	GET_CONTEXT;
938 	ctx->glMaterialx(ctx, face, pname, param);
939 }
940 
glMaterialxv(GLenum face,GLenum pname,const GLfixed * params)941 void glMaterialxv(GLenum face, GLenum pname, const GLfixed* params)
942 {
943 	GET_CONTEXT;
944 	ctx->glMaterialxv(ctx, face, pname, params);
945 }
946 
glMatrixMode(GLenum mode)947 void glMatrixMode(GLenum mode)
948 {
949 	GET_CONTEXT;
950 	ctx->glMatrixMode(ctx, mode);
951 }
952 
glMultMatrixx(const GLfixed * m)953 void glMultMatrixx(const GLfixed* m)
954 {
955 	GET_CONTEXT;
956 	ctx->glMultMatrixx(ctx, m);
957 }
958 
glMultiTexCoord4x(GLenum target,GLfixed s,GLfixed t,GLfixed r,GLfixed q)959 void glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
960 {
961 	GET_CONTEXT;
962 	ctx->glMultiTexCoord4x(ctx, target, s, t, r, q);
963 }
964 
glNormal3x(GLfixed nx,GLfixed ny,GLfixed nz)965 void glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz)
966 {
967 	GET_CONTEXT;
968 	ctx->glNormal3x(ctx, nx, ny, nz);
969 }
970 
glNormalPointer(GLenum type,GLsizei stride,const GLvoid * pointer)971 void glNormalPointer(GLenum type, GLsizei stride, const GLvoid* pointer)
972 {
973 	GET_CONTEXT;
974 	ctx->glNormalPointer(ctx, type, stride, pointer);
975 }
976 
glOrthox(GLfixed left,GLfixed right,GLfixed bottom,GLfixed top,GLfixed zNear,GLfixed zFar)977 void glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
978 {
979 	GET_CONTEXT;
980 	ctx->glOrthox(ctx, left, right, bottom, top, zNear, zFar);
981 }
982 
glPixelStorei(GLenum pname,GLint param)983 void glPixelStorei(GLenum pname, GLint param)
984 {
985 	GET_CONTEXT;
986 	ctx->glPixelStorei(ctx, pname, param);
987 }
988 
glPointParameterx(GLenum pname,GLfixed param)989 void glPointParameterx(GLenum pname, GLfixed param)
990 {
991 	GET_CONTEXT;
992 	ctx->glPointParameterx(ctx, pname, param);
993 }
994 
glPointParameterxv(GLenum pname,const GLfixed * params)995 void glPointParameterxv(GLenum pname, const GLfixed* params)
996 {
997 	GET_CONTEXT;
998 	ctx->glPointParameterxv(ctx, pname, params);
999 }
1000 
glPointSizex(GLfixed size)1001 void glPointSizex(GLfixed size)
1002 {
1003 	GET_CONTEXT;
1004 	ctx->glPointSizex(ctx, size);
1005 }
1006 
glPolygonOffsetx(GLfixed factor,GLfixed units)1007 void glPolygonOffsetx(GLfixed factor, GLfixed units)
1008 {
1009 	GET_CONTEXT;
1010 	ctx->glPolygonOffsetx(ctx, factor, units);
1011 }
1012 
glPopMatrix()1013 void glPopMatrix()
1014 {
1015 	GET_CONTEXT;
1016 	ctx->glPopMatrix(ctx);
1017 }
1018 
glPushMatrix()1019 void glPushMatrix()
1020 {
1021 	GET_CONTEXT;
1022 	ctx->glPushMatrix(ctx);
1023 }
1024 
glReadPixels(GLint x,GLint y,GLsizei width,GLsizei height,GLenum format,GLenum type,GLvoid * pixels)1025 void glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
1026 {
1027 	GET_CONTEXT;
1028 	ctx->glReadPixels(ctx, x, y, width, height, format, type, pixels);
1029 }
1030 
glRotatex(GLfixed angle,GLfixed x,GLfixed y,GLfixed z)1031 void glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
1032 {
1033 	GET_CONTEXT;
1034 	ctx->glRotatex(ctx, angle, x, y, z);
1035 }
1036 
glSampleCoverage(GLclampf value,GLboolean invert)1037 void glSampleCoverage(GLclampf value, GLboolean invert)
1038 {
1039 	GET_CONTEXT;
1040 	ctx->glSampleCoverage(ctx, value, invert);
1041 }
1042 
glSampleCoveragex(GLclampx value,GLboolean invert)1043 void glSampleCoveragex(GLclampx value, GLboolean invert)
1044 {
1045 	GET_CONTEXT;
1046 	ctx->glSampleCoveragex(ctx, value, invert);
1047 }
1048 
glScalex(GLfixed x,GLfixed y,GLfixed z)1049 void glScalex(GLfixed x, GLfixed y, GLfixed z)
1050 {
1051 	GET_CONTEXT;
1052 	ctx->glScalex(ctx, x, y, z);
1053 }
1054 
glScissor(GLint x,GLint y,GLsizei width,GLsizei height)1055 void glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
1056 {
1057 	GET_CONTEXT;
1058 	ctx->glScissor(ctx, x, y, width, height);
1059 }
1060 
glShadeModel(GLenum mode)1061 void glShadeModel(GLenum mode)
1062 {
1063 	GET_CONTEXT;
1064 	ctx->glShadeModel(ctx, mode);
1065 }
1066 
glStencilFunc(GLenum func,GLint ref,GLuint mask)1067 void glStencilFunc(GLenum func, GLint ref, GLuint mask)
1068 {
1069 	GET_CONTEXT;
1070 	ctx->glStencilFunc(ctx, func, ref, mask);
1071 }
1072 
glStencilMask(GLuint mask)1073 void glStencilMask(GLuint mask)
1074 {
1075 	GET_CONTEXT;
1076 	ctx->glStencilMask(ctx, mask);
1077 }
1078 
glStencilOp(GLenum fail,GLenum zfail,GLenum zpass)1079 void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
1080 {
1081 	GET_CONTEXT;
1082 	ctx->glStencilOp(ctx, fail, zfail, zpass);
1083 }
1084 
glTexCoordPointer(GLint size,GLenum type,GLsizei stride,const GLvoid * pointer)1085 void glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1086 {
1087 	GET_CONTEXT;
1088 	ctx->glTexCoordPointer(ctx, size, type, stride, pointer);
1089 }
1090 
glTexEnvi(GLenum target,GLenum pname,GLint param)1091 void glTexEnvi(GLenum target, GLenum pname, GLint param)
1092 {
1093 	GET_CONTEXT;
1094 	ctx->glTexEnvi(ctx, target, pname, param);
1095 }
1096 
glTexEnvx(GLenum target,GLenum pname,GLfixed param)1097 void glTexEnvx(GLenum target, GLenum pname, GLfixed param)
1098 {
1099 	GET_CONTEXT;
1100 	ctx->glTexEnvx(ctx, target, pname, param);
1101 }
1102 
glTexEnviv(GLenum target,GLenum pname,const GLint * params)1103 void glTexEnviv(GLenum target, GLenum pname, const GLint* params)
1104 {
1105 	GET_CONTEXT;
1106 	ctx->glTexEnviv(ctx, target, pname, params);
1107 }
1108 
glTexEnvxv(GLenum target,GLenum pname,const GLfixed * params)1109 void glTexEnvxv(GLenum target, GLenum pname, const GLfixed* params)
1110 {
1111 	GET_CONTEXT;
1112 	ctx->glTexEnvxv(ctx, target, pname, params);
1113 }
1114 
glTexImage2D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLsizei height,GLint border,GLenum format,GLenum type,const GLvoid * pixels)1115 void glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels)
1116 {
1117 	GET_CONTEXT;
1118 	ctx->glTexImage2D(ctx, target, level, internalformat, width, height, border, format, type, pixels);
1119 }
1120 
glTexParameteri(GLenum target,GLenum pname,GLint param)1121 void glTexParameteri(GLenum target, GLenum pname, GLint param)
1122 {
1123 	GET_CONTEXT;
1124 	ctx->glTexParameteri(ctx, target, pname, param);
1125 }
1126 
glTexParameterx(GLenum target,GLenum pname,GLfixed param)1127 void glTexParameterx(GLenum target, GLenum pname, GLfixed param)
1128 {
1129 	GET_CONTEXT;
1130 	ctx->glTexParameterx(ctx, target, pname, param);
1131 }
1132 
glTexParameteriv(GLenum target,GLenum pname,const GLint * params)1133 void glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
1134 {
1135 	GET_CONTEXT;
1136 	ctx->glTexParameteriv(ctx, target, pname, params);
1137 }
1138 
glTexParameterxv(GLenum target,GLenum pname,const GLfixed * params)1139 void glTexParameterxv(GLenum target, GLenum pname, const GLfixed* params)
1140 {
1141 	GET_CONTEXT;
1142 	ctx->glTexParameterxv(ctx, target, pname, params);
1143 }
1144 
glTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLenum type,const GLvoid * pixels)1145 void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels)
1146 {
1147 	GET_CONTEXT;
1148 	ctx->glTexSubImage2D(ctx, target, level, xoffset, yoffset, width, height, format, type, pixels);
1149 }
1150 
glTranslatex(GLfixed x,GLfixed y,GLfixed z)1151 void glTranslatex(GLfixed x, GLfixed y, GLfixed z)
1152 {
1153 	GET_CONTEXT;
1154 	ctx->glTranslatex(ctx, x, y, z);
1155 }
1156 
glVertexPointer(GLint size,GLenum type,GLsizei stride,const GLvoid * pointer)1157 void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1158 {
1159 	GET_CONTEXT;
1160 	ctx->glVertexPointer(ctx, size, type, stride, pointer);
1161 }
1162 
glViewport(GLint x,GLint y,GLsizei width,GLsizei height)1163 void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
1164 {
1165 	GET_CONTEXT;
1166 	ctx->glViewport(ctx, x, y, width, height);
1167 }
1168 
glPointSizePointerOES(GLenum type,GLsizei stride,const GLvoid * pointer)1169 void glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid* pointer)
1170 {
1171 	GET_CONTEXT;
1172 	ctx->glPointSizePointerOES(ctx, type, stride, pointer);
1173 }
1174 
glVertexPointerOffset(GLint size,GLenum type,GLsizei stride,GLuint offset)1175 void glVertexPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1176 {
1177 	GET_CONTEXT;
1178 	ctx->glVertexPointerOffset(ctx, size, type, stride, offset);
1179 }
1180 
glColorPointerOffset(GLint size,GLenum type,GLsizei stride,GLuint offset)1181 void glColorPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1182 {
1183 	GET_CONTEXT;
1184 	ctx->glColorPointerOffset(ctx, size, type, stride, offset);
1185 }
1186 
glNormalPointerOffset(GLenum type,GLsizei stride,GLuint offset)1187 void glNormalPointerOffset(GLenum type, GLsizei stride, GLuint offset)
1188 {
1189 	GET_CONTEXT;
1190 	ctx->glNormalPointerOffset(ctx, type, stride, offset);
1191 }
1192 
glPointSizePointerOffset(GLenum type,GLsizei stride,GLuint offset)1193 void glPointSizePointerOffset(GLenum type, GLsizei stride, GLuint offset)
1194 {
1195 	GET_CONTEXT;
1196 	ctx->glPointSizePointerOffset(ctx, type, stride, offset);
1197 }
1198 
glTexCoordPointerOffset(GLint size,GLenum type,GLsizei stride,GLuint offset)1199 void glTexCoordPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1200 {
1201 	GET_CONTEXT;
1202 	ctx->glTexCoordPointerOffset(ctx, size, type, stride, offset);
1203 }
1204 
glWeightPointerOffset(GLint size,GLenum type,GLsizei stride,GLuint offset)1205 void glWeightPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1206 {
1207 	GET_CONTEXT;
1208 	ctx->glWeightPointerOffset(ctx, size, type, stride, offset);
1209 }
1210 
glMatrixIndexPointerOffset(GLint size,GLenum type,GLsizei stride,GLuint offset)1211 void glMatrixIndexPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1212 {
1213 	GET_CONTEXT;
1214 	ctx->glMatrixIndexPointerOffset(ctx, size, type, stride, offset);
1215 }
1216 
glVertexPointerData(GLint size,GLenum type,GLsizei stride,void * data,GLuint datalen)1217 void glVertexPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen)
1218 {
1219 	GET_CONTEXT;
1220 	ctx->glVertexPointerData(ctx, size, type, stride, data, datalen);
1221 }
1222 
glColorPointerData(GLint size,GLenum type,GLsizei stride,void * data,GLuint datalen)1223 void glColorPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen)
1224 {
1225 	GET_CONTEXT;
1226 	ctx->glColorPointerData(ctx, size, type, stride, data, datalen);
1227 }
1228 
glNormalPointerData(GLenum type,GLsizei stride,void * data,GLuint datalen)1229 void glNormalPointerData(GLenum type, GLsizei stride, void* data, GLuint datalen)
1230 {
1231 	GET_CONTEXT;
1232 	ctx->glNormalPointerData(ctx, type, stride, data, datalen);
1233 }
1234 
glTexCoordPointerData(GLint unit,GLint size,GLenum type,GLsizei stride,void * data,GLuint datalen)1235 void glTexCoordPointerData(GLint unit, GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen)
1236 {
1237 	GET_CONTEXT;
1238 	ctx->glTexCoordPointerData(ctx, unit, size, type, stride, data, datalen);
1239 }
1240 
glPointSizePointerData(GLenum type,GLsizei stride,void * data,GLuint datalen)1241 void glPointSizePointerData(GLenum type, GLsizei stride, void* data, GLuint datalen)
1242 {
1243 	GET_CONTEXT;
1244 	ctx->glPointSizePointerData(ctx, type, stride, data, datalen);
1245 }
1246 
glWeightPointerData(GLint size,GLenum type,GLsizei stride,void * data,GLuint datalen)1247 void glWeightPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen)
1248 {
1249 	GET_CONTEXT;
1250 	ctx->glWeightPointerData(ctx, size, type, stride, data, datalen);
1251 }
1252 
glMatrixIndexPointerData(GLint size,GLenum type,GLsizei stride,void * data,GLuint datalen)1253 void glMatrixIndexPointerData(GLint size, GLenum type, GLsizei stride, void* data, GLuint datalen)
1254 {
1255 	GET_CONTEXT;
1256 	ctx->glMatrixIndexPointerData(ctx, size, type, stride, data, datalen);
1257 }
1258 
glDrawElementsOffset(GLenum mode,GLsizei count,GLenum type,GLuint offset)1259 void glDrawElementsOffset(GLenum mode, GLsizei count, GLenum type, GLuint offset)
1260 {
1261 	GET_CONTEXT;
1262 	ctx->glDrawElementsOffset(ctx, mode, count, type, offset);
1263 }
1264 
glDrawElementsData(GLenum mode,GLsizei count,GLenum type,void * data,GLuint datalen)1265 void glDrawElementsData(GLenum mode, GLsizei count, GLenum type, void* data, GLuint datalen)
1266 {
1267 	GET_CONTEXT;
1268 	ctx->glDrawElementsData(ctx, mode, count, type, data, datalen);
1269 }
1270 
glGetCompressedTextureFormats(int count,GLint * formats)1271 void glGetCompressedTextureFormats(int count, GLint* formats)
1272 {
1273 	GET_CONTEXT;
1274 	ctx->glGetCompressedTextureFormats(ctx, count, formats);
1275 }
1276 
glFinishRoundTrip()1277 int glFinishRoundTrip()
1278 {
1279 	GET_CONTEXT;
1280 	return ctx->glFinishRoundTrip(ctx);
1281 }
1282 
glBlendEquationSeparateOES(GLenum modeRGB,GLenum modeAlpha)1283 void glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha)
1284 {
1285 	GET_CONTEXT;
1286 	ctx->glBlendEquationSeparateOES(ctx, modeRGB, modeAlpha);
1287 }
1288 
glBlendFuncSeparateOES(GLenum srcRGB,GLenum dstRGB,GLenum srcAlpha,GLenum dstAlpha)1289 void glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
1290 {
1291 	GET_CONTEXT;
1292 	ctx->glBlendFuncSeparateOES(ctx, srcRGB, dstRGB, srcAlpha, dstAlpha);
1293 }
1294 
glBlendEquationOES(GLenum mode)1295 void glBlendEquationOES(GLenum mode)
1296 {
1297 	GET_CONTEXT;
1298 	ctx->glBlendEquationOES(ctx, mode);
1299 }
1300 
glDrawTexsOES(GLshort x,GLshort y,GLshort z,GLshort width,GLshort height)1301 void glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
1302 {
1303 	GET_CONTEXT;
1304 	ctx->glDrawTexsOES(ctx, x, y, z, width, height);
1305 }
1306 
glDrawTexiOES(GLint x,GLint y,GLint z,GLint width,GLint height)1307 void glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
1308 {
1309 	GET_CONTEXT;
1310 	ctx->glDrawTexiOES(ctx, x, y, z, width, height);
1311 }
1312 
glDrawTexxOES(GLfixed x,GLfixed y,GLfixed z,GLfixed width,GLfixed height)1313 void glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height)
1314 {
1315 	GET_CONTEXT;
1316 	ctx->glDrawTexxOES(ctx, x, y, z, width, height);
1317 }
1318 
glDrawTexsvOES(const GLshort * coords)1319 void glDrawTexsvOES(const GLshort* coords)
1320 {
1321 	GET_CONTEXT;
1322 	ctx->glDrawTexsvOES(ctx, coords);
1323 }
1324 
glDrawTexivOES(const GLint * coords)1325 void glDrawTexivOES(const GLint* coords)
1326 {
1327 	GET_CONTEXT;
1328 	ctx->glDrawTexivOES(ctx, coords);
1329 }
1330 
glDrawTexxvOES(const GLfixed * coords)1331 void glDrawTexxvOES(const GLfixed* coords)
1332 {
1333 	GET_CONTEXT;
1334 	ctx->glDrawTexxvOES(ctx, coords);
1335 }
1336 
glDrawTexfOES(GLfloat x,GLfloat y,GLfloat z,GLfloat width,GLfloat height)1337 void glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
1338 {
1339 	GET_CONTEXT;
1340 	ctx->glDrawTexfOES(ctx, x, y, z, width, height);
1341 }
1342 
glDrawTexfvOES(const GLfloat * coords)1343 void glDrawTexfvOES(const GLfloat* coords)
1344 {
1345 	GET_CONTEXT;
1346 	ctx->glDrawTexfvOES(ctx, coords);
1347 }
1348 
glEGLImageTargetTexture2DOES(GLenum target,GLeglImageOES image)1349 void glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
1350 {
1351 	GET_CONTEXT;
1352 	ctx->glEGLImageTargetTexture2DOES(ctx, target, image);
1353 }
1354 
glEGLImageTargetRenderbufferStorageOES(GLenum target,GLeglImageOES image)1355 void glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
1356 {
1357 	GET_CONTEXT;
1358 	ctx->glEGLImageTargetRenderbufferStorageOES(ctx, target, image);
1359 }
1360 
glAlphaFuncxOES(GLenum func,GLclampx ref)1361 void glAlphaFuncxOES(GLenum func, GLclampx ref)
1362 {
1363 	GET_CONTEXT;
1364 	ctx->glAlphaFuncxOES(ctx, func, ref);
1365 }
1366 
glClearColorxOES(GLclampx red,GLclampx green,GLclampx blue,GLclampx alpha)1367 void glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
1368 {
1369 	GET_CONTEXT;
1370 	ctx->glClearColorxOES(ctx, red, green, blue, alpha);
1371 }
1372 
glClearDepthxOES(GLclampx depth)1373 void glClearDepthxOES(GLclampx depth)
1374 {
1375 	GET_CONTEXT;
1376 	ctx->glClearDepthxOES(ctx, depth);
1377 }
1378 
glClipPlanexOES(GLenum plane,const GLfixed * equation)1379 void glClipPlanexOES(GLenum plane, const GLfixed* equation)
1380 {
1381 	GET_CONTEXT;
1382 	ctx->glClipPlanexOES(ctx, plane, equation);
1383 }
1384 
glClipPlanexIMG(GLenum plane,const GLfixed * equation)1385 void glClipPlanexIMG(GLenum plane, const GLfixed* equation)
1386 {
1387 	GET_CONTEXT;
1388 	ctx->glClipPlanexIMG(ctx, plane, equation);
1389 }
1390 
glColor4xOES(GLfixed red,GLfixed green,GLfixed blue,GLfixed alpha)1391 void glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
1392 {
1393 	GET_CONTEXT;
1394 	ctx->glColor4xOES(ctx, red, green, blue, alpha);
1395 }
1396 
glDepthRangexOES(GLclampx zNear,GLclampx zFar)1397 void glDepthRangexOES(GLclampx zNear, GLclampx zFar)
1398 {
1399 	GET_CONTEXT;
1400 	ctx->glDepthRangexOES(ctx, zNear, zFar);
1401 }
1402 
glFogxOES(GLenum pname,GLfixed param)1403 void glFogxOES(GLenum pname, GLfixed param)
1404 {
1405 	GET_CONTEXT;
1406 	ctx->glFogxOES(ctx, pname, param);
1407 }
1408 
glFogxvOES(GLenum pname,const GLfixed * params)1409 void glFogxvOES(GLenum pname, const GLfixed* params)
1410 {
1411 	GET_CONTEXT;
1412 	ctx->glFogxvOES(ctx, pname, params);
1413 }
1414 
glFrustumxOES(GLfixed left,GLfixed right,GLfixed bottom,GLfixed top,GLfixed zNear,GLfixed zFar)1415 void glFrustumxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
1416 {
1417 	GET_CONTEXT;
1418 	ctx->glFrustumxOES(ctx, left, right, bottom, top, zNear, zFar);
1419 }
1420 
glGetClipPlanexOES(GLenum pname,GLfixed * eqn)1421 void glGetClipPlanexOES(GLenum pname, GLfixed* eqn)
1422 {
1423 	GET_CONTEXT;
1424 	ctx->glGetClipPlanexOES(ctx, pname, eqn);
1425 }
1426 
glGetClipPlanex(GLenum pname,GLfixed * eqn)1427 void glGetClipPlanex(GLenum pname, GLfixed* eqn)
1428 {
1429 	GET_CONTEXT;
1430 	ctx->glGetClipPlanex(ctx, pname, eqn);
1431 }
1432 
glGetFixedvOES(GLenum pname,GLfixed * params)1433 void glGetFixedvOES(GLenum pname, GLfixed* params)
1434 {
1435 	GET_CONTEXT;
1436 	ctx->glGetFixedvOES(ctx, pname, params);
1437 }
1438 
glGetLightxvOES(GLenum light,GLenum pname,GLfixed * params)1439 void glGetLightxvOES(GLenum light, GLenum pname, GLfixed* params)
1440 {
1441 	GET_CONTEXT;
1442 	ctx->glGetLightxvOES(ctx, light, pname, params);
1443 }
1444 
glGetMaterialxvOES(GLenum face,GLenum pname,GLfixed * params)1445 void glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed* params)
1446 {
1447 	GET_CONTEXT;
1448 	ctx->glGetMaterialxvOES(ctx, face, pname, params);
1449 }
1450 
glGetTexEnvxvOES(GLenum env,GLenum pname,GLfixed * params)1451 void glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed* params)
1452 {
1453 	GET_CONTEXT;
1454 	ctx->glGetTexEnvxvOES(ctx, env, pname, params);
1455 }
1456 
glGetTexParameterxvOES(GLenum target,GLenum pname,GLfixed * params)1457 void glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed* params)
1458 {
1459 	GET_CONTEXT;
1460 	ctx->glGetTexParameterxvOES(ctx, target, pname, params);
1461 }
1462 
glLightModelxOES(GLenum pname,GLfixed param)1463 void glLightModelxOES(GLenum pname, GLfixed param)
1464 {
1465 	GET_CONTEXT;
1466 	ctx->glLightModelxOES(ctx, pname, param);
1467 }
1468 
glLightModelxvOES(GLenum pname,const GLfixed * params)1469 void glLightModelxvOES(GLenum pname, const GLfixed* params)
1470 {
1471 	GET_CONTEXT;
1472 	ctx->glLightModelxvOES(ctx, pname, params);
1473 }
1474 
glLightxOES(GLenum light,GLenum pname,GLfixed param)1475 void glLightxOES(GLenum light, GLenum pname, GLfixed param)
1476 {
1477 	GET_CONTEXT;
1478 	ctx->glLightxOES(ctx, light, pname, param);
1479 }
1480 
glLightxvOES(GLenum light,GLenum pname,const GLfixed * params)1481 void glLightxvOES(GLenum light, GLenum pname, const GLfixed* params)
1482 {
1483 	GET_CONTEXT;
1484 	ctx->glLightxvOES(ctx, light, pname, params);
1485 }
1486 
glLineWidthxOES(GLfixed width)1487 void glLineWidthxOES(GLfixed width)
1488 {
1489 	GET_CONTEXT;
1490 	ctx->glLineWidthxOES(ctx, width);
1491 }
1492 
glLoadMatrixxOES(const GLfixed * m)1493 void glLoadMatrixxOES(const GLfixed* m)
1494 {
1495 	GET_CONTEXT;
1496 	ctx->glLoadMatrixxOES(ctx, m);
1497 }
1498 
glMaterialxOES(GLenum face,GLenum pname,GLfixed param)1499 void glMaterialxOES(GLenum face, GLenum pname, GLfixed param)
1500 {
1501 	GET_CONTEXT;
1502 	ctx->glMaterialxOES(ctx, face, pname, param);
1503 }
1504 
glMaterialxvOES(GLenum face,GLenum pname,const GLfixed * params)1505 void glMaterialxvOES(GLenum face, GLenum pname, const GLfixed* params)
1506 {
1507 	GET_CONTEXT;
1508 	ctx->glMaterialxvOES(ctx, face, pname, params);
1509 }
1510 
glMultMatrixxOES(const GLfixed * m)1511 void glMultMatrixxOES(const GLfixed* m)
1512 {
1513 	GET_CONTEXT;
1514 	ctx->glMultMatrixxOES(ctx, m);
1515 }
1516 
glMultiTexCoord4xOES(GLenum target,GLfixed s,GLfixed t,GLfixed r,GLfixed q)1517 void glMultiTexCoord4xOES(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
1518 {
1519 	GET_CONTEXT;
1520 	ctx->glMultiTexCoord4xOES(ctx, target, s, t, r, q);
1521 }
1522 
glNormal3xOES(GLfixed nx,GLfixed ny,GLfixed nz)1523 void glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz)
1524 {
1525 	GET_CONTEXT;
1526 	ctx->glNormal3xOES(ctx, nx, ny, nz);
1527 }
1528 
glOrthoxOES(GLfixed left,GLfixed right,GLfixed bottom,GLfixed top,GLfixed zNear,GLfixed zFar)1529 void glOrthoxOES(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
1530 {
1531 	GET_CONTEXT;
1532 	ctx->glOrthoxOES(ctx, left, right, bottom, top, zNear, zFar);
1533 }
1534 
glPointParameterxOES(GLenum pname,GLfixed param)1535 void glPointParameterxOES(GLenum pname, GLfixed param)
1536 {
1537 	GET_CONTEXT;
1538 	ctx->glPointParameterxOES(ctx, pname, param);
1539 }
1540 
glPointParameterxvOES(GLenum pname,const GLfixed * params)1541 void glPointParameterxvOES(GLenum pname, const GLfixed* params)
1542 {
1543 	GET_CONTEXT;
1544 	ctx->glPointParameterxvOES(ctx, pname, params);
1545 }
1546 
glPointSizexOES(GLfixed size)1547 void glPointSizexOES(GLfixed size)
1548 {
1549 	GET_CONTEXT;
1550 	ctx->glPointSizexOES(ctx, size);
1551 }
1552 
glPolygonOffsetxOES(GLfixed factor,GLfixed units)1553 void glPolygonOffsetxOES(GLfixed factor, GLfixed units)
1554 {
1555 	GET_CONTEXT;
1556 	ctx->glPolygonOffsetxOES(ctx, factor, units);
1557 }
1558 
glRotatexOES(GLfixed angle,GLfixed x,GLfixed y,GLfixed z)1559 void glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
1560 {
1561 	GET_CONTEXT;
1562 	ctx->glRotatexOES(ctx, angle, x, y, z);
1563 }
1564 
glSampleCoveragexOES(GLclampx value,GLboolean invert)1565 void glSampleCoveragexOES(GLclampx value, GLboolean invert)
1566 {
1567 	GET_CONTEXT;
1568 	ctx->glSampleCoveragexOES(ctx, value, invert);
1569 }
1570 
glScalexOES(GLfixed x,GLfixed y,GLfixed z)1571 void glScalexOES(GLfixed x, GLfixed y, GLfixed z)
1572 {
1573 	GET_CONTEXT;
1574 	ctx->glScalexOES(ctx, x, y, z);
1575 }
1576 
glTexEnvxOES(GLenum target,GLenum pname,GLfixed param)1577 void glTexEnvxOES(GLenum target, GLenum pname, GLfixed param)
1578 {
1579 	GET_CONTEXT;
1580 	ctx->glTexEnvxOES(ctx, target, pname, param);
1581 }
1582 
glTexEnvxvOES(GLenum target,GLenum pname,const GLfixed * params)1583 void glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed* params)
1584 {
1585 	GET_CONTEXT;
1586 	ctx->glTexEnvxvOES(ctx, target, pname, params);
1587 }
1588 
glTexParameterxOES(GLenum target,GLenum pname,GLfixed param)1589 void glTexParameterxOES(GLenum target, GLenum pname, GLfixed param)
1590 {
1591 	GET_CONTEXT;
1592 	ctx->glTexParameterxOES(ctx, target, pname, param);
1593 }
1594 
glTexParameterxvOES(GLenum target,GLenum pname,const GLfixed * params)1595 void glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed* params)
1596 {
1597 	GET_CONTEXT;
1598 	ctx->glTexParameterxvOES(ctx, target, pname, params);
1599 }
1600 
glTranslatexOES(GLfixed x,GLfixed y,GLfixed z)1601 void glTranslatexOES(GLfixed x, GLfixed y, GLfixed z)
1602 {
1603 	GET_CONTEXT;
1604 	ctx->glTranslatexOES(ctx, x, y, z);
1605 }
1606 
glIsRenderbufferOES(GLuint renderbuffer)1607 GLboolean glIsRenderbufferOES(GLuint renderbuffer)
1608 {
1609 	GET_CONTEXT;
1610 	return ctx->glIsRenderbufferOES(ctx, renderbuffer);
1611 }
1612 
glBindRenderbufferOES(GLenum target,GLuint renderbuffer)1613 void glBindRenderbufferOES(GLenum target, GLuint renderbuffer)
1614 {
1615 	GET_CONTEXT;
1616 	ctx->glBindRenderbufferOES(ctx, target, renderbuffer);
1617 }
1618 
glDeleteRenderbuffersOES(GLsizei n,const GLuint * renderbuffers)1619 void glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers)
1620 {
1621 	GET_CONTEXT;
1622 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1623 	ctx->glDeleteRenderbuffersOES(ctx, n, renderbuffers);
1624 }
1625 
glGenRenderbuffersOES(GLsizei n,GLuint * renderbuffers)1626 void glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers)
1627 {
1628 	GET_CONTEXT;
1629 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1630 	ctx->glGenRenderbuffersOES(ctx, n, renderbuffers);
1631 }
1632 
glRenderbufferStorageOES(GLenum target,GLenum internalformat,GLsizei width,GLsizei height)1633 void glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
1634 {
1635 	GET_CONTEXT;
1636 	ctx->glRenderbufferStorageOES(ctx, target, internalformat, width, height);
1637 }
1638 
glGetRenderbufferParameterivOES(GLenum target,GLenum pname,GLint * params)1639 void glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params)
1640 {
1641 	GET_CONTEXT;
1642 	ctx->glGetRenderbufferParameterivOES(ctx, target, pname, params);
1643 }
1644 
glIsFramebufferOES(GLuint framebuffer)1645 GLboolean glIsFramebufferOES(GLuint framebuffer)
1646 {
1647 	GET_CONTEXT;
1648 	return ctx->glIsFramebufferOES(ctx, framebuffer);
1649 }
1650 
glBindFramebufferOES(GLenum target,GLuint framebuffer)1651 void glBindFramebufferOES(GLenum target, GLuint framebuffer)
1652 {
1653 	GET_CONTEXT;
1654 	ctx->glBindFramebufferOES(ctx, target, framebuffer);
1655 }
1656 
glDeleteFramebuffersOES(GLsizei n,const GLuint * framebuffers)1657 void glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers)
1658 {
1659 	GET_CONTEXT;
1660 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1661 	ctx->glDeleteFramebuffersOES(ctx, n, framebuffers);
1662 }
1663 
glGenFramebuffersOES(GLsizei n,GLuint * framebuffers)1664 void glGenFramebuffersOES(GLsizei n, GLuint* framebuffers)
1665 {
1666 	GET_CONTEXT;
1667 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1668 	ctx->glGenFramebuffersOES(ctx, n, framebuffers);
1669 }
1670 
glCheckFramebufferStatusOES(GLenum target)1671 GLenum glCheckFramebufferStatusOES(GLenum target)
1672 {
1673 	GET_CONTEXT;
1674 	return ctx->glCheckFramebufferStatusOES(ctx, target);
1675 }
1676 
glFramebufferRenderbufferOES(GLenum target,GLenum attachment,GLenum renderbuffertarget,GLuint renderbuffer)1677 void glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
1678 {
1679 	GET_CONTEXT;
1680 	ctx->glFramebufferRenderbufferOES(ctx, target, attachment, renderbuffertarget, renderbuffer);
1681 }
1682 
glFramebufferTexture2DOES(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level)1683 void glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
1684 {
1685 	GET_CONTEXT;
1686 	ctx->glFramebufferTexture2DOES(ctx, target, attachment, textarget, texture, level);
1687 }
1688 
glGetFramebufferAttachmentParameterivOES(GLenum target,GLenum attachment,GLenum pname,GLint * params)1689 void glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params)
1690 {
1691 	GET_CONTEXT;
1692 	ctx->glGetFramebufferAttachmentParameterivOES(ctx, target, attachment, pname, params);
1693 }
1694 
glGenerateMipmapOES(GLenum target)1695 void glGenerateMipmapOES(GLenum target)
1696 {
1697 	GET_CONTEXT;
1698 	ctx->glGenerateMipmapOES(ctx, target);
1699 }
1700 
glMapBufferOES(GLenum target,GLenum access)1701 void* glMapBufferOES(GLenum target, GLenum access)
1702 {
1703 	GET_CONTEXT;
1704 	return ctx->glMapBufferOES(ctx, target, access);
1705 }
1706 
glUnmapBufferOES(GLenum target)1707 GLboolean glUnmapBufferOES(GLenum target)
1708 {
1709 	GET_CONTEXT;
1710 	return ctx->glUnmapBufferOES(ctx, target);
1711 }
1712 
glGetBufferPointervOES(GLenum target,GLenum pname,GLvoid ** params)1713 void glGetBufferPointervOES(GLenum target, GLenum pname, GLvoid** params)
1714 {
1715 	GET_CONTEXT;
1716 	ctx->glGetBufferPointervOES(ctx, target, pname, params);
1717 }
1718 
glCurrentPaletteMatrixOES(GLuint matrixpaletteindex)1719 void glCurrentPaletteMatrixOES(GLuint matrixpaletteindex)
1720 {
1721 	GET_CONTEXT;
1722 	ctx->glCurrentPaletteMatrixOES(ctx, matrixpaletteindex);
1723 }
1724 
glLoadPaletteFromModelViewMatrixOES()1725 void glLoadPaletteFromModelViewMatrixOES()
1726 {
1727 	GET_CONTEXT;
1728 	ctx->glLoadPaletteFromModelViewMatrixOES(ctx);
1729 }
1730 
glMatrixIndexPointerOES(GLint size,GLenum type,GLsizei stride,const GLvoid * pointer)1731 void glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1732 {
1733 	GET_CONTEXT;
1734 	ctx->glMatrixIndexPointerOES(ctx, size, type, stride, pointer);
1735 }
1736 
glWeightPointerOES(GLint size,GLenum type,GLsizei stride,const GLvoid * pointer)1737 void glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1738 {
1739 	GET_CONTEXT;
1740 	ctx->glWeightPointerOES(ctx, size, type, stride, pointer);
1741 }
1742 
glQueryMatrixxOES(GLfixed * mantissa,GLint * exponent)1743 GLbitfield glQueryMatrixxOES(GLfixed* mantissa, GLint* exponent)
1744 {
1745 	GET_CONTEXT;
1746 	return ctx->glQueryMatrixxOES(ctx, mantissa, exponent);
1747 }
1748 
glDepthRangefOES(GLclampf zNear,GLclampf zFar)1749 void glDepthRangefOES(GLclampf zNear, GLclampf zFar)
1750 {
1751 	GET_CONTEXT;
1752 	ctx->glDepthRangefOES(ctx, zNear, zFar);
1753 }
1754 
glFrustumfOES(GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat zNear,GLfloat zFar)1755 void glFrustumfOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
1756 {
1757 	GET_CONTEXT;
1758 	ctx->glFrustumfOES(ctx, left, right, bottom, top, zNear, zFar);
1759 }
1760 
glOrthofOES(GLfloat left,GLfloat right,GLfloat bottom,GLfloat top,GLfloat zNear,GLfloat zFar)1761 void glOrthofOES(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
1762 {
1763 	GET_CONTEXT;
1764 	ctx->glOrthofOES(ctx, left, right, bottom, top, zNear, zFar);
1765 }
1766 
glClipPlanefOES(GLenum plane,const GLfloat * equation)1767 void glClipPlanefOES(GLenum plane, const GLfloat* equation)
1768 {
1769 	GET_CONTEXT;
1770 	ctx->glClipPlanefOES(ctx, plane, equation);
1771 }
1772 
glClipPlanefIMG(GLenum plane,const GLfloat * equation)1773 void glClipPlanefIMG(GLenum plane, const GLfloat* equation)
1774 {
1775 	GET_CONTEXT;
1776 	ctx->glClipPlanefIMG(ctx, plane, equation);
1777 }
1778 
glGetClipPlanefOES(GLenum pname,GLfloat * eqn)1779 void glGetClipPlanefOES(GLenum pname, GLfloat* eqn)
1780 {
1781 	GET_CONTEXT;
1782 	ctx->glGetClipPlanefOES(ctx, pname, eqn);
1783 }
1784 
glClearDepthfOES(GLclampf depth)1785 void glClearDepthfOES(GLclampf depth)
1786 {
1787 	GET_CONTEXT;
1788 	ctx->glClearDepthfOES(ctx, depth);
1789 }
1790 
glTexGenfOES(GLenum coord,GLenum pname,GLfloat param)1791 void glTexGenfOES(GLenum coord, GLenum pname, GLfloat param)
1792 {
1793 	GET_CONTEXT;
1794 	ctx->glTexGenfOES(ctx, coord, pname, param);
1795 }
1796 
glTexGenfvOES(GLenum coord,GLenum pname,const GLfloat * params)1797 void glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat* params)
1798 {
1799 	GET_CONTEXT;
1800 	ctx->glTexGenfvOES(ctx, coord, pname, params);
1801 }
1802 
glTexGeniOES(GLenum coord,GLenum pname,GLint param)1803 void glTexGeniOES(GLenum coord, GLenum pname, GLint param)
1804 {
1805 	GET_CONTEXT;
1806 	ctx->glTexGeniOES(ctx, coord, pname, param);
1807 }
1808 
glTexGenivOES(GLenum coord,GLenum pname,const GLint * params)1809 void glTexGenivOES(GLenum coord, GLenum pname, const GLint* params)
1810 {
1811 	GET_CONTEXT;
1812 	ctx->glTexGenivOES(ctx, coord, pname, params);
1813 }
1814 
glTexGenxOES(GLenum coord,GLenum pname,GLfixed param)1815 void glTexGenxOES(GLenum coord, GLenum pname, GLfixed param)
1816 {
1817 	GET_CONTEXT;
1818 	ctx->glTexGenxOES(ctx, coord, pname, param);
1819 }
1820 
glTexGenxvOES(GLenum coord,GLenum pname,const GLfixed * params)1821 void glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed* params)
1822 {
1823 	GET_CONTEXT;
1824 	ctx->glTexGenxvOES(ctx, coord, pname, params);
1825 }
1826 
glGetTexGenfvOES(GLenum coord,GLenum pname,GLfloat * params)1827 void glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat* params)
1828 {
1829 	GET_CONTEXT;
1830 	ctx->glGetTexGenfvOES(ctx, coord, pname, params);
1831 }
1832 
glGetTexGenivOES(GLenum coord,GLenum pname,GLint * params)1833 void glGetTexGenivOES(GLenum coord, GLenum pname, GLint* params)
1834 {
1835 	GET_CONTEXT;
1836 	ctx->glGetTexGenivOES(ctx, coord, pname, params);
1837 }
1838 
glGetTexGenxvOES(GLenum coord,GLenum pname,GLfixed * params)1839 void glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed* params)
1840 {
1841 	GET_CONTEXT;
1842 	ctx->glGetTexGenxvOES(ctx, coord, pname, params);
1843 }
1844 
glBindVertexArrayOES(GLuint array)1845 void glBindVertexArrayOES(GLuint array)
1846 {
1847 	GET_CONTEXT;
1848 	ctx->glBindVertexArrayOES(ctx, array);
1849 }
1850 
glDeleteVertexArraysOES(GLsizei n,const GLuint * arrays)1851 void glDeleteVertexArraysOES(GLsizei n, const GLuint* arrays)
1852 {
1853 	GET_CONTEXT;
1854 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1855 	ctx->glDeleteVertexArraysOES(ctx, n, arrays);
1856 }
1857 
glGenVertexArraysOES(GLsizei n,GLuint * arrays)1858 void glGenVertexArraysOES(GLsizei n, GLuint* arrays)
1859 {
1860 	GET_CONTEXT;
1861 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1862 	ctx->glGenVertexArraysOES(ctx, n, arrays);
1863 }
1864 
glIsVertexArrayOES(GLuint array)1865 GLboolean glIsVertexArrayOES(GLuint array)
1866 {
1867 	GET_CONTEXT;
1868 	return ctx->glIsVertexArrayOES(ctx, array);
1869 }
1870 
glDiscardFramebufferEXT(GLenum target,GLsizei numAttachments,const GLenum * attachments)1871 void glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum* attachments)
1872 {
1873 	GET_CONTEXT;
1874 	ctx->glDiscardFramebufferEXT(ctx, target, numAttachments, attachments);
1875 }
1876 
glMultiDrawArraysEXT(GLenum mode,const GLint * first,const GLsizei * count,GLsizei primcount)1877 void glMultiDrawArraysEXT(GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount)
1878 {
1879 	GET_CONTEXT;
1880 	ctx->glMultiDrawArraysEXT(ctx, mode, first, count, primcount);
1881 }
1882 
glMultiDrawElementsEXT(GLenum mode,const GLsizei * count,GLenum type,const GLvoid * const * indices,GLsizei primcount)1883 void glMultiDrawElementsEXT(GLenum mode, const GLsizei* count, GLenum type, const GLvoid* const* indices, GLsizei primcount)
1884 {
1885 	GET_CONTEXT;
1886 	ctx->glMultiDrawElementsEXT(ctx, mode, count, type, indices, primcount);
1887 }
1888 
glMultiDrawArraysSUN(GLenum mode,GLint * first,GLsizei * count,GLsizei primcount)1889 void glMultiDrawArraysSUN(GLenum mode, GLint* first, GLsizei* count, GLsizei primcount)
1890 {
1891 	GET_CONTEXT;
1892 	ctx->glMultiDrawArraysSUN(ctx, mode, first, count, primcount);
1893 }
1894 
glMultiDrawElementsSUN(GLenum mode,const GLsizei * count,GLenum type,const GLvoid ** indices,GLsizei primcount)1895 void glMultiDrawElementsSUN(GLenum mode, const GLsizei* count, GLenum type, const GLvoid** indices, GLsizei primcount)
1896 {
1897 	GET_CONTEXT;
1898 	ctx->glMultiDrawElementsSUN(ctx, mode, count, type, indices, primcount);
1899 }
1900 
glRenderbufferStorageMultisampleIMG(GLenum target,GLsizei samples,GLenum internalformat,GLsizei width,GLsizei height)1901 void glRenderbufferStorageMultisampleIMG(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
1902 {
1903 	GET_CONTEXT;
1904 	ctx->glRenderbufferStorageMultisampleIMG(ctx, target, samples, internalformat, width, height);
1905 }
1906 
glFramebufferTexture2DMultisampleIMG(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level,GLsizei samples)1907 void glFramebufferTexture2DMultisampleIMG(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples)
1908 {
1909 	GET_CONTEXT;
1910 	ctx->glFramebufferTexture2DMultisampleIMG(ctx, target, attachment, textarget, texture, level, samples);
1911 }
1912 
glDeleteFencesNV(GLsizei n,const GLuint * fences)1913 void glDeleteFencesNV(GLsizei n, const GLuint* fences)
1914 {
1915 	GET_CONTEXT;
1916 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1917 	ctx->glDeleteFencesNV(ctx, n, fences);
1918 }
1919 
glGenFencesNV(GLsizei n,GLuint * fences)1920 void glGenFencesNV(GLsizei n, GLuint* fences)
1921 {
1922 	GET_CONTEXT;
1923 	 if(n<0){ ctx->setError(GL_INVALID_VALUE); return; }
1924 	ctx->glGenFencesNV(ctx, n, fences);
1925 }
1926 
glIsFenceNV(GLuint fence)1927 GLboolean glIsFenceNV(GLuint fence)
1928 {
1929 	GET_CONTEXT;
1930 	return ctx->glIsFenceNV(ctx, fence);
1931 }
1932 
glTestFenceNV(GLuint fence)1933 GLboolean glTestFenceNV(GLuint fence)
1934 {
1935 	GET_CONTEXT;
1936 	return ctx->glTestFenceNV(ctx, fence);
1937 }
1938 
glGetFenceivNV(GLuint fence,GLenum pname,GLint * params)1939 void glGetFenceivNV(GLuint fence, GLenum pname, GLint* params)
1940 {
1941 	GET_CONTEXT;
1942 	ctx->glGetFenceivNV(ctx, fence, pname, params);
1943 }
1944 
glFinishFenceNV(GLuint fence)1945 void glFinishFenceNV(GLuint fence)
1946 {
1947 	GET_CONTEXT;
1948 	ctx->glFinishFenceNV(ctx, fence);
1949 }
1950 
glSetFenceNV(GLuint fence,GLenum condition)1951 void glSetFenceNV(GLuint fence, GLenum condition)
1952 {
1953 	GET_CONTEXT;
1954 	ctx->glSetFenceNV(ctx, fence, condition);
1955 }
1956 
glGetDriverControlsQCOM(GLint * num,GLsizei size,GLuint * driverControls)1957 void glGetDriverControlsQCOM(GLint* num, GLsizei size, GLuint* driverControls)
1958 {
1959 	GET_CONTEXT;
1960 	ctx->glGetDriverControlsQCOM(ctx, num, size, driverControls);
1961 }
1962 
glGetDriverControlStringQCOM(GLuint driverControl,GLsizei bufSize,GLsizei * length,GLchar * driverControlString)1963 void glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei* length, GLchar* driverControlString)
1964 {
1965 	GET_CONTEXT;
1966 	ctx->glGetDriverControlStringQCOM(ctx, driverControl, bufSize, length, driverControlString);
1967 }
1968 
glEnableDriverControlQCOM(GLuint driverControl)1969 void glEnableDriverControlQCOM(GLuint driverControl)
1970 {
1971 	GET_CONTEXT;
1972 	ctx->glEnableDriverControlQCOM(ctx, driverControl);
1973 }
1974 
glDisableDriverControlQCOM(GLuint driverControl)1975 void glDisableDriverControlQCOM(GLuint driverControl)
1976 {
1977 	GET_CONTEXT;
1978 	ctx->glDisableDriverControlQCOM(ctx, driverControl);
1979 }
1980 
glExtGetTexturesQCOM(GLuint * textures,GLint maxTextures,GLint * numTextures)1981 void glExtGetTexturesQCOM(GLuint* textures, GLint maxTextures, GLint* numTextures)
1982 {
1983 	GET_CONTEXT;
1984 	ctx->glExtGetTexturesQCOM(ctx, textures, maxTextures, numTextures);
1985 }
1986 
glExtGetBuffersQCOM(GLuint * buffers,GLint maxBuffers,GLint * numBuffers)1987 void glExtGetBuffersQCOM(GLuint* buffers, GLint maxBuffers, GLint* numBuffers)
1988 {
1989 	GET_CONTEXT;
1990 	ctx->glExtGetBuffersQCOM(ctx, buffers, maxBuffers, numBuffers);
1991 }
1992 
glExtGetRenderbuffersQCOM(GLuint * renderbuffers,GLint maxRenderbuffers,GLint * numRenderbuffers)1993 void glExtGetRenderbuffersQCOM(GLuint* renderbuffers, GLint maxRenderbuffers, GLint* numRenderbuffers)
1994 {
1995 	GET_CONTEXT;
1996 	ctx->glExtGetRenderbuffersQCOM(ctx, renderbuffers, maxRenderbuffers, numRenderbuffers);
1997 }
1998 
glExtGetFramebuffersQCOM(GLuint * framebuffers,GLint maxFramebuffers,GLint * numFramebuffers)1999 void glExtGetFramebuffersQCOM(GLuint* framebuffers, GLint maxFramebuffers, GLint* numFramebuffers)
2000 {
2001 	GET_CONTEXT;
2002 	ctx->glExtGetFramebuffersQCOM(ctx, framebuffers, maxFramebuffers, numFramebuffers);
2003 }
2004 
glExtGetTexLevelParameterivQCOM(GLuint texture,GLenum face,GLint level,GLenum pname,GLint * params)2005 void glExtGetTexLevelParameterivQCOM(GLuint texture, GLenum face, GLint level, GLenum pname, GLint* params)
2006 {
2007 	GET_CONTEXT;
2008 	ctx->glExtGetTexLevelParameterivQCOM(ctx, texture, face, level, pname, params);
2009 }
2010 
glExtTexObjectStateOverrideiQCOM(GLenum target,GLenum pname,GLint param)2011 void glExtTexObjectStateOverrideiQCOM(GLenum target, GLenum pname, GLint param)
2012 {
2013 	GET_CONTEXT;
2014 	ctx->glExtTexObjectStateOverrideiQCOM(ctx, target, pname, param);
2015 }
2016 
glExtGetTexSubImageQCOM(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLenum type,GLvoid * texels)2017 void glExtGetTexSubImageQCOM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid* texels)
2018 {
2019 	GET_CONTEXT;
2020 	ctx->glExtGetTexSubImageQCOM(ctx, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, texels);
2021 }
2022 
glExtGetBufferPointervQCOM(GLenum target,GLvoid ** params)2023 void glExtGetBufferPointervQCOM(GLenum target, GLvoid** params)
2024 {
2025 	GET_CONTEXT;
2026 	ctx->glExtGetBufferPointervQCOM(ctx, target, params);
2027 }
2028 
glExtGetShadersQCOM(GLuint * shaders,GLint maxShaders,GLint * numShaders)2029 void glExtGetShadersQCOM(GLuint* shaders, GLint maxShaders, GLint* numShaders)
2030 {
2031 	GET_CONTEXT;
2032 	ctx->glExtGetShadersQCOM(ctx, shaders, maxShaders, numShaders);
2033 }
2034 
glExtGetProgramsQCOM(GLuint * programs,GLint maxPrograms,GLint * numPrograms)2035 void glExtGetProgramsQCOM(GLuint* programs, GLint maxPrograms, GLint* numPrograms)
2036 {
2037 	GET_CONTEXT;
2038 	ctx->glExtGetProgramsQCOM(ctx, programs, maxPrograms, numPrograms);
2039 }
2040 
glExtIsProgramBinaryQCOM(GLuint program)2041 GLboolean glExtIsProgramBinaryQCOM(GLuint program)
2042 {
2043 	GET_CONTEXT;
2044 	return ctx->glExtIsProgramBinaryQCOM(ctx, program);
2045 }
2046 
glExtGetProgramBinarySourceQCOM(GLuint program,GLenum shadertype,GLchar * source,GLint * length)2047 void glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar* source, GLint* length)
2048 {
2049 	GET_CONTEXT;
2050 	ctx->glExtGetProgramBinarySourceQCOM(ctx, program, shadertype, source, length);
2051 }
2052 
glStartTilingQCOM(GLuint x,GLuint y,GLuint width,GLuint height,GLbitfield preserveMask)2053 void glStartTilingQCOM(GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask)
2054 {
2055 	GET_CONTEXT;
2056 	ctx->glStartTilingQCOM(ctx, x, y, width, height, preserveMask);
2057 }
2058 
glEndTilingQCOM(GLbitfield preserveMask)2059 void glEndTilingQCOM(GLbitfield preserveMask)
2060 {
2061 	GET_CONTEXT;
2062 	ctx->glEndTilingQCOM(ctx, preserveMask);
2063 }
2064 
2065