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
7extern "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
302static gl_client_context_t::CONTEXT_ACCESSOR_TYPE *getCurrentContext = NULL;
303void gl_client_context_t::setContextAccessor(CONTEXT_ACCESSOR_TYPE *f) { getCurrentContext = f; }
304#define GET_CONTEXT gl_client_context_t * ctx = getCurrentContext()
305#endif
306
307void glAlphaFunc(GLenum func, GLclampf ref)
308{
309	GET_CONTEXT;
310	ctx->glAlphaFunc(ctx, func, ref);
311}
312
313void glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
314{
315	GET_CONTEXT;
316	ctx->glClearColor(ctx, red, green, blue, alpha);
317}
318
319void glClearDepthf(GLclampf depth)
320{
321	GET_CONTEXT;
322	ctx->glClearDepthf(ctx, depth);
323}
324
325void glClipPlanef(GLenum plane, const GLfloat* equation)
326{
327	GET_CONTEXT;
328	ctx->glClipPlanef(ctx, plane, equation);
329}
330
331void glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
332{
333	GET_CONTEXT;
334	ctx->glColor4f(ctx, red, green, blue, alpha);
335}
336
337void glDepthRangef(GLclampf zNear, GLclampf zFar)
338{
339	GET_CONTEXT;
340	ctx->glDepthRangef(ctx, zNear, zFar);
341}
342
343void glFogf(GLenum pname, GLfloat param)
344{
345	GET_CONTEXT;
346	ctx->glFogf(ctx, pname, param);
347}
348
349void glFogfv(GLenum pname, const GLfloat* params)
350{
351	GET_CONTEXT;
352	ctx->glFogfv(ctx, pname, params);
353}
354
355void 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
361void glGetClipPlanef(GLenum pname, GLfloat* eqn)
362{
363	GET_CONTEXT;
364	ctx->glGetClipPlanef(ctx, pname, eqn);
365}
366
367void glGetFloatv(GLenum pname, GLfloat* params)
368{
369	GET_CONTEXT;
370	ctx->glGetFloatv(ctx, pname, params);
371}
372
373void glGetLightfv(GLenum light, GLenum pname, GLfloat* params)
374{
375	GET_CONTEXT;
376	ctx->glGetLightfv(ctx, light, pname, params);
377}
378
379void glGetMaterialfv(GLenum face, GLenum pname, GLfloat* params)
380{
381	GET_CONTEXT;
382	ctx->glGetMaterialfv(ctx, face, pname, params);
383}
384
385void glGetTexEnvfv(GLenum env, GLenum pname, GLfloat* params)
386{
387	GET_CONTEXT;
388	ctx->glGetTexEnvfv(ctx, env, pname, params);
389}
390
391void glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
392{
393	GET_CONTEXT;
394	ctx->glGetTexParameterfv(ctx, target, pname, params);
395}
396
397void glLightModelf(GLenum pname, GLfloat param)
398{
399	GET_CONTEXT;
400	ctx->glLightModelf(ctx, pname, param);
401}
402
403void glLightModelfv(GLenum pname, const GLfloat* params)
404{
405	GET_CONTEXT;
406	ctx->glLightModelfv(ctx, pname, params);
407}
408
409void glLightf(GLenum light, GLenum pname, GLfloat param)
410{
411	GET_CONTEXT;
412	ctx->glLightf(ctx, light, pname, param);
413}
414
415void glLightfv(GLenum light, GLenum pname, const GLfloat* params)
416{
417	GET_CONTEXT;
418	ctx->glLightfv(ctx, light, pname, params);
419}
420
421void glLineWidth(GLfloat width)
422{
423	GET_CONTEXT;
424	ctx->glLineWidth(ctx, width);
425}
426
427void glLoadMatrixf(const GLfloat* m)
428{
429	GET_CONTEXT;
430	ctx->glLoadMatrixf(ctx, m);
431}
432
433void glMaterialf(GLenum face, GLenum pname, GLfloat param)
434{
435	GET_CONTEXT;
436	ctx->glMaterialf(ctx, face, pname, param);
437}
438
439void glMaterialfv(GLenum face, GLenum pname, const GLfloat* params)
440{
441	GET_CONTEXT;
442	ctx->glMaterialfv(ctx, face, pname, params);
443}
444
445void glMultMatrixf(const GLfloat* m)
446{
447	GET_CONTEXT;
448	ctx->glMultMatrixf(ctx, m);
449}
450
451void 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
457void glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
458{
459	GET_CONTEXT;
460	ctx->glNormal3f(ctx, nx, ny, nz);
461}
462
463void 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
469void glPointParameterf(GLenum pname, GLfloat param)
470{
471	GET_CONTEXT;
472	ctx->glPointParameterf(ctx, pname, param);
473}
474
475void glPointParameterfv(GLenum pname, const GLfloat* params)
476{
477	GET_CONTEXT;
478	ctx->glPointParameterfv(ctx, pname, params);
479}
480
481void glPointSize(GLfloat size)
482{
483	GET_CONTEXT;
484	ctx->glPointSize(ctx, size);
485}
486
487void glPolygonOffset(GLfloat factor, GLfloat units)
488{
489	GET_CONTEXT;
490	ctx->glPolygonOffset(ctx, factor, units);
491}
492
493void glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
494{
495	GET_CONTEXT;
496	ctx->glRotatef(ctx, angle, x, y, z);
497}
498
499void glScalef(GLfloat x, GLfloat y, GLfloat z)
500{
501	GET_CONTEXT;
502	ctx->glScalef(ctx, x, y, z);
503}
504
505void glTexEnvf(GLenum target, GLenum pname, GLfloat param)
506{
507	GET_CONTEXT;
508	ctx->glTexEnvf(ctx, target, pname, param);
509}
510
511void glTexEnvfv(GLenum target, GLenum pname, const GLfloat* params)
512{
513	GET_CONTEXT;
514	ctx->glTexEnvfv(ctx, target, pname, params);
515}
516
517void glTexParameterf(GLenum target, GLenum pname, GLfloat param)
518{
519	GET_CONTEXT;
520	ctx->glTexParameterf(ctx, target, pname, param);
521}
522
523void glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
524{
525	GET_CONTEXT;
526	ctx->glTexParameterfv(ctx, target, pname, params);
527}
528
529void glTranslatef(GLfloat x, GLfloat y, GLfloat z)
530{
531	GET_CONTEXT;
532	ctx->glTranslatef(ctx, x, y, z);
533}
534
535void glActiveTexture(GLenum texture)
536{
537	GET_CONTEXT;
538	ctx->glActiveTexture(ctx, texture);
539}
540
541void glAlphaFuncx(GLenum func, GLclampx ref)
542{
543	GET_CONTEXT;
544	ctx->glAlphaFuncx(ctx, func, ref);
545}
546
547void glBindBuffer(GLenum target, GLuint buffer)
548{
549	GET_CONTEXT;
550	ctx->glBindBuffer(ctx, target, buffer);
551}
552
553void glBindTexture(GLenum target, GLuint texture)
554{
555	GET_CONTEXT;
556	ctx->glBindTexture(ctx, target, texture);
557}
558
559void glBlendFunc(GLenum sfactor, GLenum dfactor)
560{
561	GET_CONTEXT;
562	ctx->glBlendFunc(ctx, sfactor, dfactor);
563}
564
565void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
566{
567	GET_CONTEXT;
568	ctx->glBufferData(ctx, target, size, data, usage);
569}
570
571void glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
572{
573	GET_CONTEXT;
574	ctx->glBufferSubData(ctx, target, offset, size, data);
575}
576
577void glClear(GLbitfield mask)
578{
579	GET_CONTEXT;
580	ctx->glClear(ctx, mask);
581}
582
583void glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
584{
585	GET_CONTEXT;
586	ctx->glClearColorx(ctx, red, green, blue, alpha);
587}
588
589void glClearDepthx(GLclampx depth)
590{
591	GET_CONTEXT;
592	ctx->glClearDepthx(ctx, depth);
593}
594
595void glClearStencil(GLint s)
596{
597	GET_CONTEXT;
598	ctx->glClearStencil(ctx, s);
599}
600
601void glClientActiveTexture(GLenum texture)
602{
603	GET_CONTEXT;
604	ctx->glClientActiveTexture(ctx, texture);
605}
606
607void glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
608{
609	GET_CONTEXT;
610	ctx->glColor4ub(ctx, red, green, blue, alpha);
611}
612
613void glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
614{
615	GET_CONTEXT;
616	ctx->glColor4x(ctx, red, green, blue, alpha);
617}
618
619void glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
620{
621	GET_CONTEXT;
622	ctx->glColorMask(ctx, red, green, blue, alpha);
623}
624
625void glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
626{
627	GET_CONTEXT;
628	ctx->glColorPointer(ctx, size, type, stride, pointer);
629}
630
631void 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
637void 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
643void 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
649void 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
655void glCullFace(GLenum mode)
656{
657	GET_CONTEXT;
658	ctx->glCullFace(ctx, mode);
659}
660
661void 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
668void 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
675void glDepthFunc(GLenum func)
676{
677	GET_CONTEXT;
678	ctx->glDepthFunc(ctx, func);
679}
680
681void glDepthMask(GLboolean flag)
682{
683	GET_CONTEXT;
684	ctx->glDepthMask(ctx, flag);
685}
686
687void glDepthRangex(GLclampx zNear, GLclampx zFar)
688{
689	GET_CONTEXT;
690	ctx->glDepthRangex(ctx, zNear, zFar);
691}
692
693void glDisable(GLenum cap)
694{
695	GET_CONTEXT;
696	ctx->glDisable(ctx, cap);
697}
698
699void glDisableClientState(GLenum array)
700{
701	GET_CONTEXT;
702	ctx->glDisableClientState(ctx, array);
703}
704
705void glDrawArrays(GLenum mode, GLint first, GLsizei count)
706{
707	GET_CONTEXT;
708	ctx->glDrawArrays(ctx, mode, first, count);
709}
710
711void glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
712{
713	GET_CONTEXT;
714	ctx->glDrawElements(ctx, mode, count, type, indices);
715}
716
717void glEnable(GLenum cap)
718{
719	GET_CONTEXT;
720	ctx->glEnable(ctx, cap);
721}
722
723void glEnableClientState(GLenum array)
724{
725	GET_CONTEXT;
726	ctx->glEnableClientState(ctx, array);
727}
728
729void glFinish()
730{
731	GET_CONTEXT;
732	ctx->glFinish(ctx);
733}
734
735void glFlush()
736{
737	GET_CONTEXT;
738	ctx->glFlush(ctx);
739}
740
741void glFogx(GLenum pname, GLfixed param)
742{
743	GET_CONTEXT;
744	ctx->glFogx(ctx, pname, param);
745}
746
747void glFogxv(GLenum pname, const GLfixed* params)
748{
749	GET_CONTEXT;
750	ctx->glFogxv(ctx, pname, params);
751}
752
753void glFrontFace(GLenum mode)
754{
755	GET_CONTEXT;
756	ctx->glFrontFace(ctx, mode);
757}
758
759void 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
765void glGetBooleanv(GLenum pname, GLboolean* params)
766{
767	GET_CONTEXT;
768	ctx->glGetBooleanv(ctx, pname, params);
769}
770
771void glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
772{
773	GET_CONTEXT;
774	ctx->glGetBufferParameteriv(ctx, target, pname, params);
775}
776
777void glClipPlanex(GLenum pname, const GLfixed* eqn)
778{
779	GET_CONTEXT;
780	ctx->glClipPlanex(ctx, pname, eqn);
781}
782
783void 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
790void 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
797GLenum glGetError()
798{
799	GET_CONTEXT;
800	return ctx->glGetError(ctx);
801}
802
803void glGetFixedv(GLenum pname, GLfixed* params)
804{
805	GET_CONTEXT;
806	ctx->glGetFixedv(ctx, pname, params);
807}
808
809void glGetIntegerv(GLenum pname, GLint* params)
810{
811	GET_CONTEXT;
812	ctx->glGetIntegerv(ctx, pname, params);
813}
814
815void glGetLightxv(GLenum light, GLenum pname, GLfixed* params)
816{
817	GET_CONTEXT;
818	ctx->glGetLightxv(ctx, light, pname, params);
819}
820
821void glGetMaterialxv(GLenum face, GLenum pname, GLfixed* params)
822{
823	GET_CONTEXT;
824	ctx->glGetMaterialxv(ctx, face, pname, params);
825}
826
827void glGetPointerv(GLenum pname, GLvoid** params)
828{
829	GET_CONTEXT;
830	ctx->glGetPointerv(ctx, pname, params);
831}
832
833const GLubyte* glGetString(GLenum name)
834{
835	GET_CONTEXT;
836	return ctx->glGetString(ctx, name);
837}
838
839void glGetTexEnviv(GLenum env, GLenum pname, GLint* params)
840{
841	GET_CONTEXT;
842	ctx->glGetTexEnviv(ctx, env, pname, params);
843}
844
845void glGetTexEnvxv(GLenum env, GLenum pname, GLfixed* params)
846{
847	GET_CONTEXT;
848	ctx->glGetTexEnvxv(ctx, env, pname, params);
849}
850
851void glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
852{
853	GET_CONTEXT;
854	ctx->glGetTexParameteriv(ctx, target, pname, params);
855}
856
857void glGetTexParameterxv(GLenum target, GLenum pname, GLfixed* params)
858{
859	GET_CONTEXT;
860	ctx->glGetTexParameterxv(ctx, target, pname, params);
861}
862
863void glHint(GLenum target, GLenum mode)
864{
865	GET_CONTEXT;
866	ctx->glHint(ctx, target, mode);
867}
868
869GLboolean glIsBuffer(GLuint buffer)
870{
871	GET_CONTEXT;
872	return ctx->glIsBuffer(ctx, buffer);
873}
874
875GLboolean glIsEnabled(GLenum cap)
876{
877	GET_CONTEXT;
878	return ctx->glIsEnabled(ctx, cap);
879}
880
881GLboolean glIsTexture(GLuint texture)
882{
883	GET_CONTEXT;
884	return ctx->glIsTexture(ctx, texture);
885}
886
887void glLightModelx(GLenum pname, GLfixed param)
888{
889	GET_CONTEXT;
890	ctx->glLightModelx(ctx, pname, param);
891}
892
893void glLightModelxv(GLenum pname, const GLfixed* params)
894{
895	GET_CONTEXT;
896	ctx->glLightModelxv(ctx, pname, params);
897}
898
899void glLightx(GLenum light, GLenum pname, GLfixed param)
900{
901	GET_CONTEXT;
902	ctx->glLightx(ctx, light, pname, param);
903}
904
905void glLightxv(GLenum light, GLenum pname, const GLfixed* params)
906{
907	GET_CONTEXT;
908	ctx->glLightxv(ctx, light, pname, params);
909}
910
911void glLineWidthx(GLfixed width)
912{
913	GET_CONTEXT;
914	ctx->glLineWidthx(ctx, width);
915}
916
917void glLoadIdentity()
918{
919	GET_CONTEXT;
920	ctx->glLoadIdentity(ctx);
921}
922
923void glLoadMatrixx(const GLfixed* m)
924{
925	GET_CONTEXT;
926	ctx->glLoadMatrixx(ctx, m);
927}
928
929void glLogicOp(GLenum opcode)
930{
931	GET_CONTEXT;
932	ctx->glLogicOp(ctx, opcode);
933}
934
935void glMaterialx(GLenum face, GLenum pname, GLfixed param)
936{
937	GET_CONTEXT;
938	ctx->glMaterialx(ctx, face, pname, param);
939}
940
941void glMaterialxv(GLenum face, GLenum pname, const GLfixed* params)
942{
943	GET_CONTEXT;
944	ctx->glMaterialxv(ctx, face, pname, params);
945}
946
947void glMatrixMode(GLenum mode)
948{
949	GET_CONTEXT;
950	ctx->glMatrixMode(ctx, mode);
951}
952
953void glMultMatrixx(const GLfixed* m)
954{
955	GET_CONTEXT;
956	ctx->glMultMatrixx(ctx, m);
957}
958
959void 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
965void glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz)
966{
967	GET_CONTEXT;
968	ctx->glNormal3x(ctx, nx, ny, nz);
969}
970
971void glNormalPointer(GLenum type, GLsizei stride, const GLvoid* pointer)
972{
973	GET_CONTEXT;
974	ctx->glNormalPointer(ctx, type, stride, pointer);
975}
976
977void 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
983void glPixelStorei(GLenum pname, GLint param)
984{
985	GET_CONTEXT;
986	ctx->glPixelStorei(ctx, pname, param);
987}
988
989void glPointParameterx(GLenum pname, GLfixed param)
990{
991	GET_CONTEXT;
992	ctx->glPointParameterx(ctx, pname, param);
993}
994
995void glPointParameterxv(GLenum pname, const GLfixed* params)
996{
997	GET_CONTEXT;
998	ctx->glPointParameterxv(ctx, pname, params);
999}
1000
1001void glPointSizex(GLfixed size)
1002{
1003	GET_CONTEXT;
1004	ctx->glPointSizex(ctx, size);
1005}
1006
1007void glPolygonOffsetx(GLfixed factor, GLfixed units)
1008{
1009	GET_CONTEXT;
1010	ctx->glPolygonOffsetx(ctx, factor, units);
1011}
1012
1013void glPopMatrix()
1014{
1015	GET_CONTEXT;
1016	ctx->glPopMatrix(ctx);
1017}
1018
1019void glPushMatrix()
1020{
1021	GET_CONTEXT;
1022	ctx->glPushMatrix(ctx);
1023}
1024
1025void 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
1031void glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
1032{
1033	GET_CONTEXT;
1034	ctx->glRotatex(ctx, angle, x, y, z);
1035}
1036
1037void glSampleCoverage(GLclampf value, GLboolean invert)
1038{
1039	GET_CONTEXT;
1040	ctx->glSampleCoverage(ctx, value, invert);
1041}
1042
1043void glSampleCoveragex(GLclampx value, GLboolean invert)
1044{
1045	GET_CONTEXT;
1046	ctx->glSampleCoveragex(ctx, value, invert);
1047}
1048
1049void glScalex(GLfixed x, GLfixed y, GLfixed z)
1050{
1051	GET_CONTEXT;
1052	ctx->glScalex(ctx, x, y, z);
1053}
1054
1055void glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
1056{
1057	GET_CONTEXT;
1058	ctx->glScissor(ctx, x, y, width, height);
1059}
1060
1061void glShadeModel(GLenum mode)
1062{
1063	GET_CONTEXT;
1064	ctx->glShadeModel(ctx, mode);
1065}
1066
1067void glStencilFunc(GLenum func, GLint ref, GLuint mask)
1068{
1069	GET_CONTEXT;
1070	ctx->glStencilFunc(ctx, func, ref, mask);
1071}
1072
1073void glStencilMask(GLuint mask)
1074{
1075	GET_CONTEXT;
1076	ctx->glStencilMask(ctx, mask);
1077}
1078
1079void glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
1080{
1081	GET_CONTEXT;
1082	ctx->glStencilOp(ctx, fail, zfail, zpass);
1083}
1084
1085void glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1086{
1087	GET_CONTEXT;
1088	ctx->glTexCoordPointer(ctx, size, type, stride, pointer);
1089}
1090
1091void glTexEnvi(GLenum target, GLenum pname, GLint param)
1092{
1093	GET_CONTEXT;
1094	ctx->glTexEnvi(ctx, target, pname, param);
1095}
1096
1097void glTexEnvx(GLenum target, GLenum pname, GLfixed param)
1098{
1099	GET_CONTEXT;
1100	ctx->glTexEnvx(ctx, target, pname, param);
1101}
1102
1103void glTexEnviv(GLenum target, GLenum pname, const GLint* params)
1104{
1105	GET_CONTEXT;
1106	ctx->glTexEnviv(ctx, target, pname, params);
1107}
1108
1109void glTexEnvxv(GLenum target, GLenum pname, const GLfixed* params)
1110{
1111	GET_CONTEXT;
1112	ctx->glTexEnvxv(ctx, target, pname, params);
1113}
1114
1115void 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
1121void glTexParameteri(GLenum target, GLenum pname, GLint param)
1122{
1123	GET_CONTEXT;
1124	ctx->glTexParameteri(ctx, target, pname, param);
1125}
1126
1127void glTexParameterx(GLenum target, GLenum pname, GLfixed param)
1128{
1129	GET_CONTEXT;
1130	ctx->glTexParameterx(ctx, target, pname, param);
1131}
1132
1133void glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
1134{
1135	GET_CONTEXT;
1136	ctx->glTexParameteriv(ctx, target, pname, params);
1137}
1138
1139void glTexParameterxv(GLenum target, GLenum pname, const GLfixed* params)
1140{
1141	GET_CONTEXT;
1142	ctx->glTexParameterxv(ctx, target, pname, params);
1143}
1144
1145void 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
1151void glTranslatex(GLfixed x, GLfixed y, GLfixed z)
1152{
1153	GET_CONTEXT;
1154	ctx->glTranslatex(ctx, x, y, z);
1155}
1156
1157void glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1158{
1159	GET_CONTEXT;
1160	ctx->glVertexPointer(ctx, size, type, stride, pointer);
1161}
1162
1163void glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
1164{
1165	GET_CONTEXT;
1166	ctx->glViewport(ctx, x, y, width, height);
1167}
1168
1169void glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid* pointer)
1170{
1171	GET_CONTEXT;
1172	ctx->glPointSizePointerOES(ctx, type, stride, pointer);
1173}
1174
1175void glVertexPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1176{
1177	GET_CONTEXT;
1178	ctx->glVertexPointerOffset(ctx, size, type, stride, offset);
1179}
1180
1181void glColorPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1182{
1183	GET_CONTEXT;
1184	ctx->glColorPointerOffset(ctx, size, type, stride, offset);
1185}
1186
1187void glNormalPointerOffset(GLenum type, GLsizei stride, GLuint offset)
1188{
1189	GET_CONTEXT;
1190	ctx->glNormalPointerOffset(ctx, type, stride, offset);
1191}
1192
1193void glPointSizePointerOffset(GLenum type, GLsizei stride, GLuint offset)
1194{
1195	GET_CONTEXT;
1196	ctx->glPointSizePointerOffset(ctx, type, stride, offset);
1197}
1198
1199void glTexCoordPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1200{
1201	GET_CONTEXT;
1202	ctx->glTexCoordPointerOffset(ctx, size, type, stride, offset);
1203}
1204
1205void glWeightPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1206{
1207	GET_CONTEXT;
1208	ctx->glWeightPointerOffset(ctx, size, type, stride, offset);
1209}
1210
1211void glMatrixIndexPointerOffset(GLint size, GLenum type, GLsizei stride, GLuint offset)
1212{
1213	GET_CONTEXT;
1214	ctx->glMatrixIndexPointerOffset(ctx, size, type, stride, offset);
1215}
1216
1217void 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
1223void 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
1229void glNormalPointerData(GLenum type, GLsizei stride, void* data, GLuint datalen)
1230{
1231	GET_CONTEXT;
1232	ctx->glNormalPointerData(ctx, type, stride, data, datalen);
1233}
1234
1235void 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
1241void glPointSizePointerData(GLenum type, GLsizei stride, void* data, GLuint datalen)
1242{
1243	GET_CONTEXT;
1244	ctx->glPointSizePointerData(ctx, type, stride, data, datalen);
1245}
1246
1247void 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
1253void 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
1259void glDrawElementsOffset(GLenum mode, GLsizei count, GLenum type, GLuint offset)
1260{
1261	GET_CONTEXT;
1262	ctx->glDrawElementsOffset(ctx, mode, count, type, offset);
1263}
1264
1265void 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
1271void glGetCompressedTextureFormats(int count, GLint* formats)
1272{
1273	GET_CONTEXT;
1274	ctx->glGetCompressedTextureFormats(ctx, count, formats);
1275}
1276
1277int glFinishRoundTrip()
1278{
1279	GET_CONTEXT;
1280	return ctx->glFinishRoundTrip(ctx);
1281}
1282
1283void glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha)
1284{
1285	GET_CONTEXT;
1286	ctx->glBlendEquationSeparateOES(ctx, modeRGB, modeAlpha);
1287}
1288
1289void glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
1290{
1291	GET_CONTEXT;
1292	ctx->glBlendFuncSeparateOES(ctx, srcRGB, dstRGB, srcAlpha, dstAlpha);
1293}
1294
1295void glBlendEquationOES(GLenum mode)
1296{
1297	GET_CONTEXT;
1298	ctx->glBlendEquationOES(ctx, mode);
1299}
1300
1301void 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
1307void 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
1313void 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
1319void glDrawTexsvOES(const GLshort* coords)
1320{
1321	GET_CONTEXT;
1322	ctx->glDrawTexsvOES(ctx, coords);
1323}
1324
1325void glDrawTexivOES(const GLint* coords)
1326{
1327	GET_CONTEXT;
1328	ctx->glDrawTexivOES(ctx, coords);
1329}
1330
1331void glDrawTexxvOES(const GLfixed* coords)
1332{
1333	GET_CONTEXT;
1334	ctx->glDrawTexxvOES(ctx, coords);
1335}
1336
1337void 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
1343void glDrawTexfvOES(const GLfloat* coords)
1344{
1345	GET_CONTEXT;
1346	ctx->glDrawTexfvOES(ctx, coords);
1347}
1348
1349void glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
1350{
1351	GET_CONTEXT;
1352	ctx->glEGLImageTargetTexture2DOES(ctx, target, image);
1353}
1354
1355void glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
1356{
1357	GET_CONTEXT;
1358	ctx->glEGLImageTargetRenderbufferStorageOES(ctx, target, image);
1359}
1360
1361void glAlphaFuncxOES(GLenum func, GLclampx ref)
1362{
1363	GET_CONTEXT;
1364	ctx->glAlphaFuncxOES(ctx, func, ref);
1365}
1366
1367void glClearColorxOES(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
1368{
1369	GET_CONTEXT;
1370	ctx->glClearColorxOES(ctx, red, green, blue, alpha);
1371}
1372
1373void glClearDepthxOES(GLclampx depth)
1374{
1375	GET_CONTEXT;
1376	ctx->glClearDepthxOES(ctx, depth);
1377}
1378
1379void glClipPlanexOES(GLenum plane, const GLfixed* equation)
1380{
1381	GET_CONTEXT;
1382	ctx->glClipPlanexOES(ctx, plane, equation);
1383}
1384
1385void glClipPlanexIMG(GLenum plane, const GLfixed* equation)
1386{
1387	GET_CONTEXT;
1388	ctx->glClipPlanexIMG(ctx, plane, equation);
1389}
1390
1391void glColor4xOES(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
1392{
1393	GET_CONTEXT;
1394	ctx->glColor4xOES(ctx, red, green, blue, alpha);
1395}
1396
1397void glDepthRangexOES(GLclampx zNear, GLclampx zFar)
1398{
1399	GET_CONTEXT;
1400	ctx->glDepthRangexOES(ctx, zNear, zFar);
1401}
1402
1403void glFogxOES(GLenum pname, GLfixed param)
1404{
1405	GET_CONTEXT;
1406	ctx->glFogxOES(ctx, pname, param);
1407}
1408
1409void glFogxvOES(GLenum pname, const GLfixed* params)
1410{
1411	GET_CONTEXT;
1412	ctx->glFogxvOES(ctx, pname, params);
1413}
1414
1415void 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
1421void glGetClipPlanexOES(GLenum pname, GLfixed* eqn)
1422{
1423	GET_CONTEXT;
1424	ctx->glGetClipPlanexOES(ctx, pname, eqn);
1425}
1426
1427void glGetClipPlanex(GLenum pname, GLfixed* eqn)
1428{
1429	GET_CONTEXT;
1430	ctx->glGetClipPlanex(ctx, pname, eqn);
1431}
1432
1433void glGetFixedvOES(GLenum pname, GLfixed* params)
1434{
1435	GET_CONTEXT;
1436	ctx->glGetFixedvOES(ctx, pname, params);
1437}
1438
1439void glGetLightxvOES(GLenum light, GLenum pname, GLfixed* params)
1440{
1441	GET_CONTEXT;
1442	ctx->glGetLightxvOES(ctx, light, pname, params);
1443}
1444
1445void glGetMaterialxvOES(GLenum face, GLenum pname, GLfixed* params)
1446{
1447	GET_CONTEXT;
1448	ctx->glGetMaterialxvOES(ctx, face, pname, params);
1449}
1450
1451void glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed* params)
1452{
1453	GET_CONTEXT;
1454	ctx->glGetTexEnvxvOES(ctx, env, pname, params);
1455}
1456
1457void glGetTexParameterxvOES(GLenum target, GLenum pname, GLfixed* params)
1458{
1459	GET_CONTEXT;
1460	ctx->glGetTexParameterxvOES(ctx, target, pname, params);
1461}
1462
1463void glLightModelxOES(GLenum pname, GLfixed param)
1464{
1465	GET_CONTEXT;
1466	ctx->glLightModelxOES(ctx, pname, param);
1467}
1468
1469void glLightModelxvOES(GLenum pname, const GLfixed* params)
1470{
1471	GET_CONTEXT;
1472	ctx->glLightModelxvOES(ctx, pname, params);
1473}
1474
1475void glLightxOES(GLenum light, GLenum pname, GLfixed param)
1476{
1477	GET_CONTEXT;
1478	ctx->glLightxOES(ctx, light, pname, param);
1479}
1480
1481void glLightxvOES(GLenum light, GLenum pname, const GLfixed* params)
1482{
1483	GET_CONTEXT;
1484	ctx->glLightxvOES(ctx, light, pname, params);
1485}
1486
1487void glLineWidthxOES(GLfixed width)
1488{
1489	GET_CONTEXT;
1490	ctx->glLineWidthxOES(ctx, width);
1491}
1492
1493void glLoadMatrixxOES(const GLfixed* m)
1494{
1495	GET_CONTEXT;
1496	ctx->glLoadMatrixxOES(ctx, m);
1497}
1498
1499void glMaterialxOES(GLenum face, GLenum pname, GLfixed param)
1500{
1501	GET_CONTEXT;
1502	ctx->glMaterialxOES(ctx, face, pname, param);
1503}
1504
1505void glMaterialxvOES(GLenum face, GLenum pname, const GLfixed* params)
1506{
1507	GET_CONTEXT;
1508	ctx->glMaterialxvOES(ctx, face, pname, params);
1509}
1510
1511void glMultMatrixxOES(const GLfixed* m)
1512{
1513	GET_CONTEXT;
1514	ctx->glMultMatrixxOES(ctx, m);
1515}
1516
1517void 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
1523void glNormal3xOES(GLfixed nx, GLfixed ny, GLfixed nz)
1524{
1525	GET_CONTEXT;
1526	ctx->glNormal3xOES(ctx, nx, ny, nz);
1527}
1528
1529void 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
1535void glPointParameterxOES(GLenum pname, GLfixed param)
1536{
1537	GET_CONTEXT;
1538	ctx->glPointParameterxOES(ctx, pname, param);
1539}
1540
1541void glPointParameterxvOES(GLenum pname, const GLfixed* params)
1542{
1543	GET_CONTEXT;
1544	ctx->glPointParameterxvOES(ctx, pname, params);
1545}
1546
1547void glPointSizexOES(GLfixed size)
1548{
1549	GET_CONTEXT;
1550	ctx->glPointSizexOES(ctx, size);
1551}
1552
1553void glPolygonOffsetxOES(GLfixed factor, GLfixed units)
1554{
1555	GET_CONTEXT;
1556	ctx->glPolygonOffsetxOES(ctx, factor, units);
1557}
1558
1559void glRotatexOES(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
1560{
1561	GET_CONTEXT;
1562	ctx->glRotatexOES(ctx, angle, x, y, z);
1563}
1564
1565void glSampleCoveragexOES(GLclampx value, GLboolean invert)
1566{
1567	GET_CONTEXT;
1568	ctx->glSampleCoveragexOES(ctx, value, invert);
1569}
1570
1571void glScalexOES(GLfixed x, GLfixed y, GLfixed z)
1572{
1573	GET_CONTEXT;
1574	ctx->glScalexOES(ctx, x, y, z);
1575}
1576
1577void glTexEnvxOES(GLenum target, GLenum pname, GLfixed param)
1578{
1579	GET_CONTEXT;
1580	ctx->glTexEnvxOES(ctx, target, pname, param);
1581}
1582
1583void glTexEnvxvOES(GLenum target, GLenum pname, const GLfixed* params)
1584{
1585	GET_CONTEXT;
1586	ctx->glTexEnvxvOES(ctx, target, pname, params);
1587}
1588
1589void glTexParameterxOES(GLenum target, GLenum pname, GLfixed param)
1590{
1591	GET_CONTEXT;
1592	ctx->glTexParameterxOES(ctx, target, pname, param);
1593}
1594
1595void glTexParameterxvOES(GLenum target, GLenum pname, const GLfixed* params)
1596{
1597	GET_CONTEXT;
1598	ctx->glTexParameterxvOES(ctx, target, pname, params);
1599}
1600
1601void glTranslatexOES(GLfixed x, GLfixed y, GLfixed z)
1602{
1603	GET_CONTEXT;
1604	ctx->glTranslatexOES(ctx, x, y, z);
1605}
1606
1607GLboolean glIsRenderbufferOES(GLuint renderbuffer)
1608{
1609	GET_CONTEXT;
1610	return ctx->glIsRenderbufferOES(ctx, renderbuffer);
1611}
1612
1613void glBindRenderbufferOES(GLenum target, GLuint renderbuffer)
1614{
1615	GET_CONTEXT;
1616	ctx->glBindRenderbufferOES(ctx, target, renderbuffer);
1617}
1618
1619void 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
1626void 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
1633void glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
1634{
1635	GET_CONTEXT;
1636	ctx->glRenderbufferStorageOES(ctx, target, internalformat, width, height);
1637}
1638
1639void glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params)
1640{
1641	GET_CONTEXT;
1642	ctx->glGetRenderbufferParameterivOES(ctx, target, pname, params);
1643}
1644
1645GLboolean glIsFramebufferOES(GLuint framebuffer)
1646{
1647	GET_CONTEXT;
1648	return ctx->glIsFramebufferOES(ctx, framebuffer);
1649}
1650
1651void glBindFramebufferOES(GLenum target, GLuint framebuffer)
1652{
1653	GET_CONTEXT;
1654	ctx->glBindFramebufferOES(ctx, target, framebuffer);
1655}
1656
1657void 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
1664void 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
1671GLenum glCheckFramebufferStatusOES(GLenum target)
1672{
1673	GET_CONTEXT;
1674	return ctx->glCheckFramebufferStatusOES(ctx, target);
1675}
1676
1677void glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
1678{
1679	GET_CONTEXT;
1680	ctx->glFramebufferRenderbufferOES(ctx, target, attachment, renderbuffertarget, renderbuffer);
1681}
1682
1683void 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
1689void glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params)
1690{
1691	GET_CONTEXT;
1692	ctx->glGetFramebufferAttachmentParameterivOES(ctx, target, attachment, pname, params);
1693}
1694
1695void glGenerateMipmapOES(GLenum target)
1696{
1697	GET_CONTEXT;
1698	ctx->glGenerateMipmapOES(ctx, target);
1699}
1700
1701void* glMapBufferOES(GLenum target, GLenum access)
1702{
1703	GET_CONTEXT;
1704	return ctx->glMapBufferOES(ctx, target, access);
1705}
1706
1707GLboolean glUnmapBufferOES(GLenum target)
1708{
1709	GET_CONTEXT;
1710	return ctx->glUnmapBufferOES(ctx, target);
1711}
1712
1713void glGetBufferPointervOES(GLenum target, GLenum pname, GLvoid** params)
1714{
1715	GET_CONTEXT;
1716	ctx->glGetBufferPointervOES(ctx, target, pname, params);
1717}
1718
1719void glCurrentPaletteMatrixOES(GLuint matrixpaletteindex)
1720{
1721	GET_CONTEXT;
1722	ctx->glCurrentPaletteMatrixOES(ctx, matrixpaletteindex);
1723}
1724
1725void glLoadPaletteFromModelViewMatrixOES()
1726{
1727	GET_CONTEXT;
1728	ctx->glLoadPaletteFromModelViewMatrixOES(ctx);
1729}
1730
1731void glMatrixIndexPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1732{
1733	GET_CONTEXT;
1734	ctx->glMatrixIndexPointerOES(ctx, size, type, stride, pointer);
1735}
1736
1737void glWeightPointerOES(GLint size, GLenum type, GLsizei stride, const GLvoid* pointer)
1738{
1739	GET_CONTEXT;
1740	ctx->glWeightPointerOES(ctx, size, type, stride, pointer);
1741}
1742
1743GLbitfield glQueryMatrixxOES(GLfixed* mantissa, GLint* exponent)
1744{
1745	GET_CONTEXT;
1746	return ctx->glQueryMatrixxOES(ctx, mantissa, exponent);
1747}
1748
1749void glDepthRangefOES(GLclampf zNear, GLclampf zFar)
1750{
1751	GET_CONTEXT;
1752	ctx->glDepthRangefOES(ctx, zNear, zFar);
1753}
1754
1755void 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
1761void 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
1767void glClipPlanefOES(GLenum plane, const GLfloat* equation)
1768{
1769	GET_CONTEXT;
1770	ctx->glClipPlanefOES(ctx, plane, equation);
1771}
1772
1773void glClipPlanefIMG(GLenum plane, const GLfloat* equation)
1774{
1775	GET_CONTEXT;
1776	ctx->glClipPlanefIMG(ctx, plane, equation);
1777}
1778
1779void glGetClipPlanefOES(GLenum pname, GLfloat* eqn)
1780{
1781	GET_CONTEXT;
1782	ctx->glGetClipPlanefOES(ctx, pname, eqn);
1783}
1784
1785void glClearDepthfOES(GLclampf depth)
1786{
1787	GET_CONTEXT;
1788	ctx->glClearDepthfOES(ctx, depth);
1789}
1790
1791void glTexGenfOES(GLenum coord, GLenum pname, GLfloat param)
1792{
1793	GET_CONTEXT;
1794	ctx->glTexGenfOES(ctx, coord, pname, param);
1795}
1796
1797void glTexGenfvOES(GLenum coord, GLenum pname, const GLfloat* params)
1798{
1799	GET_CONTEXT;
1800	ctx->glTexGenfvOES(ctx, coord, pname, params);
1801}
1802
1803void glTexGeniOES(GLenum coord, GLenum pname, GLint param)
1804{
1805	GET_CONTEXT;
1806	ctx->glTexGeniOES(ctx, coord, pname, param);
1807}
1808
1809void glTexGenivOES(GLenum coord, GLenum pname, const GLint* params)
1810{
1811	GET_CONTEXT;
1812	ctx->glTexGenivOES(ctx, coord, pname, params);
1813}
1814
1815void glTexGenxOES(GLenum coord, GLenum pname, GLfixed param)
1816{
1817	GET_CONTEXT;
1818	ctx->glTexGenxOES(ctx, coord, pname, param);
1819}
1820
1821void glTexGenxvOES(GLenum coord, GLenum pname, const GLfixed* params)
1822{
1823	GET_CONTEXT;
1824	ctx->glTexGenxvOES(ctx, coord, pname, params);
1825}
1826
1827void glGetTexGenfvOES(GLenum coord, GLenum pname, GLfloat* params)
1828{
1829	GET_CONTEXT;
1830	ctx->glGetTexGenfvOES(ctx, coord, pname, params);
1831}
1832
1833void glGetTexGenivOES(GLenum coord, GLenum pname, GLint* params)
1834{
1835	GET_CONTEXT;
1836	ctx->glGetTexGenivOES(ctx, coord, pname, params);
1837}
1838
1839void glGetTexGenxvOES(GLenum coord, GLenum pname, GLfixed* params)
1840{
1841	GET_CONTEXT;
1842	ctx->glGetTexGenxvOES(ctx, coord, pname, params);
1843}
1844
1845void glBindVertexArrayOES(GLuint array)
1846{
1847	GET_CONTEXT;
1848	ctx->glBindVertexArrayOES(ctx, array);
1849}
1850
1851void 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
1858void 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
1865GLboolean glIsVertexArrayOES(GLuint array)
1866{
1867	GET_CONTEXT;
1868	return ctx->glIsVertexArrayOES(ctx, array);
1869}
1870
1871void glDiscardFramebufferEXT(GLenum target, GLsizei numAttachments, const GLenum* attachments)
1872{
1873	GET_CONTEXT;
1874	ctx->glDiscardFramebufferEXT(ctx, target, numAttachments, attachments);
1875}
1876
1877void 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
1883void 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
1889void glMultiDrawArraysSUN(GLenum mode, GLint* first, GLsizei* count, GLsizei primcount)
1890{
1891	GET_CONTEXT;
1892	ctx->glMultiDrawArraysSUN(ctx, mode, first, count, primcount);
1893}
1894
1895void 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
1901void 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
1907void 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
1913void 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
1920void 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
1927GLboolean glIsFenceNV(GLuint fence)
1928{
1929	GET_CONTEXT;
1930	return ctx->glIsFenceNV(ctx, fence);
1931}
1932
1933GLboolean glTestFenceNV(GLuint fence)
1934{
1935	GET_CONTEXT;
1936	return ctx->glTestFenceNV(ctx, fence);
1937}
1938
1939void glGetFenceivNV(GLuint fence, GLenum pname, GLint* params)
1940{
1941	GET_CONTEXT;
1942	ctx->glGetFenceivNV(ctx, fence, pname, params);
1943}
1944
1945void glFinishFenceNV(GLuint fence)
1946{
1947	GET_CONTEXT;
1948	ctx->glFinishFenceNV(ctx, fence);
1949}
1950
1951void glSetFenceNV(GLuint fence, GLenum condition)
1952{
1953	GET_CONTEXT;
1954	ctx->glSetFenceNV(ctx, fence, condition);
1955}
1956
1957void glGetDriverControlsQCOM(GLint* num, GLsizei size, GLuint* driverControls)
1958{
1959	GET_CONTEXT;
1960	ctx->glGetDriverControlsQCOM(ctx, num, size, driverControls);
1961}
1962
1963void glGetDriverControlStringQCOM(GLuint driverControl, GLsizei bufSize, GLsizei* length, GLchar* driverControlString)
1964{
1965	GET_CONTEXT;
1966	ctx->glGetDriverControlStringQCOM(ctx, driverControl, bufSize, length, driverControlString);
1967}
1968
1969void glEnableDriverControlQCOM(GLuint driverControl)
1970{
1971	GET_CONTEXT;
1972	ctx->glEnableDriverControlQCOM(ctx, driverControl);
1973}
1974
1975void glDisableDriverControlQCOM(GLuint driverControl)
1976{
1977	GET_CONTEXT;
1978	ctx->glDisableDriverControlQCOM(ctx, driverControl);
1979}
1980
1981void glExtGetTexturesQCOM(GLuint* textures, GLint maxTextures, GLint* numTextures)
1982{
1983	GET_CONTEXT;
1984	ctx->glExtGetTexturesQCOM(ctx, textures, maxTextures, numTextures);
1985}
1986
1987void glExtGetBuffersQCOM(GLuint* buffers, GLint maxBuffers, GLint* numBuffers)
1988{
1989	GET_CONTEXT;
1990	ctx->glExtGetBuffersQCOM(ctx, buffers, maxBuffers, numBuffers);
1991}
1992
1993void glExtGetRenderbuffersQCOM(GLuint* renderbuffers, GLint maxRenderbuffers, GLint* numRenderbuffers)
1994{
1995	GET_CONTEXT;
1996	ctx->glExtGetRenderbuffersQCOM(ctx, renderbuffers, maxRenderbuffers, numRenderbuffers);
1997}
1998
1999void glExtGetFramebuffersQCOM(GLuint* framebuffers, GLint maxFramebuffers, GLint* numFramebuffers)
2000{
2001	GET_CONTEXT;
2002	ctx->glExtGetFramebuffersQCOM(ctx, framebuffers, maxFramebuffers, numFramebuffers);
2003}
2004
2005void 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
2011void glExtTexObjectStateOverrideiQCOM(GLenum target, GLenum pname, GLint param)
2012{
2013	GET_CONTEXT;
2014	ctx->glExtTexObjectStateOverrideiQCOM(ctx, target, pname, param);
2015}
2016
2017void 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
2023void glExtGetBufferPointervQCOM(GLenum target, GLvoid** params)
2024{
2025	GET_CONTEXT;
2026	ctx->glExtGetBufferPointervQCOM(ctx, target, params);
2027}
2028
2029void glExtGetShadersQCOM(GLuint* shaders, GLint maxShaders, GLint* numShaders)
2030{
2031	GET_CONTEXT;
2032	ctx->glExtGetShadersQCOM(ctx, shaders, maxShaders, numShaders);
2033}
2034
2035void glExtGetProgramsQCOM(GLuint* programs, GLint maxPrograms, GLint* numPrograms)
2036{
2037	GET_CONTEXT;
2038	ctx->glExtGetProgramsQCOM(ctx, programs, maxPrograms, numPrograms);
2039}
2040
2041GLboolean glExtIsProgramBinaryQCOM(GLuint program)
2042{
2043	GET_CONTEXT;
2044	return ctx->glExtIsProgramBinaryQCOM(ctx, program);
2045}
2046
2047void glExtGetProgramBinarySourceQCOM(GLuint program, GLenum shadertype, GLchar* source, GLint* length)
2048{
2049	GET_CONTEXT;
2050	ctx->glExtGetProgramBinarySourceQCOM(ctx, program, shadertype, source, length);
2051}
2052
2053void 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
2059void glEndTilingQCOM(GLbitfield preserveMask)
2060{
2061	GET_CONTEXT;
2062	ctx->glEndTilingQCOM(ctx, preserveMask);
2063}
2064
2065