blob: 6d46a9b21bb19636ec7db4283b4b5bcb28407925 [file] [log] [blame]
keunyoungb85b2752013-03-08 12:28:03 -08001// Generated Code - DO NOT EDIT !!
2// generated by 'emugen'
3#ifndef __gl_client_context_t_h
4#define __gl_client_context_t_h
5
6#include "gl_client_proc.h"
7
Yahan Zhoub7f09082016-03-10 11:45:02 -08008#include "gl_types.h"
9
keunyoungb85b2752013-03-08 12:28:03 -080010
11struct gl_client_context_t {
12
13 glAlphaFunc_client_proc_t glAlphaFunc;
14 glClearColor_client_proc_t glClearColor;
15 glClearDepthf_client_proc_t glClearDepthf;
16 glClipPlanef_client_proc_t glClipPlanef;
17 glColor4f_client_proc_t glColor4f;
18 glDepthRangef_client_proc_t glDepthRangef;
19 glFogf_client_proc_t glFogf;
20 glFogfv_client_proc_t glFogfv;
21 glFrustumf_client_proc_t glFrustumf;
22 glGetClipPlanef_client_proc_t glGetClipPlanef;
23 glGetFloatv_client_proc_t glGetFloatv;
24 glGetLightfv_client_proc_t glGetLightfv;
25 glGetMaterialfv_client_proc_t glGetMaterialfv;
26 glGetTexEnvfv_client_proc_t glGetTexEnvfv;
27 glGetTexParameterfv_client_proc_t glGetTexParameterfv;
28 glLightModelf_client_proc_t glLightModelf;
29 glLightModelfv_client_proc_t glLightModelfv;
30 glLightf_client_proc_t glLightf;
31 glLightfv_client_proc_t glLightfv;
32 glLineWidth_client_proc_t glLineWidth;
33 glLoadMatrixf_client_proc_t glLoadMatrixf;
34 glMaterialf_client_proc_t glMaterialf;
35 glMaterialfv_client_proc_t glMaterialfv;
36 glMultMatrixf_client_proc_t glMultMatrixf;
37 glMultiTexCoord4f_client_proc_t glMultiTexCoord4f;
38 glNormal3f_client_proc_t glNormal3f;
39 glOrthof_client_proc_t glOrthof;
40 glPointParameterf_client_proc_t glPointParameterf;
41 glPointParameterfv_client_proc_t glPointParameterfv;
42 glPointSize_client_proc_t glPointSize;
43 glPolygonOffset_client_proc_t glPolygonOffset;
44 glRotatef_client_proc_t glRotatef;
45 glScalef_client_proc_t glScalef;
46 glTexEnvf_client_proc_t glTexEnvf;
47 glTexEnvfv_client_proc_t glTexEnvfv;
48 glTexParameterf_client_proc_t glTexParameterf;
49 glTexParameterfv_client_proc_t glTexParameterfv;
50 glTranslatef_client_proc_t glTranslatef;
51 glActiveTexture_client_proc_t glActiveTexture;
52 glAlphaFuncx_client_proc_t glAlphaFuncx;
53 glBindBuffer_client_proc_t glBindBuffer;
54 glBindTexture_client_proc_t glBindTexture;
55 glBlendFunc_client_proc_t glBlendFunc;
56 glBufferData_client_proc_t glBufferData;
57 glBufferSubData_client_proc_t glBufferSubData;
58 glClear_client_proc_t glClear;
59 glClearColorx_client_proc_t glClearColorx;
60 glClearDepthx_client_proc_t glClearDepthx;
61 glClearStencil_client_proc_t glClearStencil;
62 glClientActiveTexture_client_proc_t glClientActiveTexture;
63 glColor4ub_client_proc_t glColor4ub;
64 glColor4x_client_proc_t glColor4x;
65 glColorMask_client_proc_t glColorMask;
66 glColorPointer_client_proc_t glColorPointer;
67 glCompressedTexImage2D_client_proc_t glCompressedTexImage2D;
68 glCompressedTexSubImage2D_client_proc_t glCompressedTexSubImage2D;
69 glCopyTexImage2D_client_proc_t glCopyTexImage2D;
70 glCopyTexSubImage2D_client_proc_t glCopyTexSubImage2D;
71 glCullFace_client_proc_t glCullFace;
72 glDeleteBuffers_client_proc_t glDeleteBuffers;
73 glDeleteTextures_client_proc_t glDeleteTextures;
74 glDepthFunc_client_proc_t glDepthFunc;
75 glDepthMask_client_proc_t glDepthMask;
76 glDepthRangex_client_proc_t glDepthRangex;
77 glDisable_client_proc_t glDisable;
78 glDisableClientState_client_proc_t glDisableClientState;
79 glDrawArrays_client_proc_t glDrawArrays;
80 glDrawElements_client_proc_t glDrawElements;
81 glEnable_client_proc_t glEnable;
82 glEnableClientState_client_proc_t glEnableClientState;
83 glFinish_client_proc_t glFinish;
84 glFlush_client_proc_t glFlush;
85 glFogx_client_proc_t glFogx;
86 glFogxv_client_proc_t glFogxv;
87 glFrontFace_client_proc_t glFrontFace;
88 glFrustumx_client_proc_t glFrustumx;
89 glGetBooleanv_client_proc_t glGetBooleanv;
90 glGetBufferParameteriv_client_proc_t glGetBufferParameteriv;
91 glClipPlanex_client_proc_t glClipPlanex;
92 glGenBuffers_client_proc_t glGenBuffers;
93 glGenTextures_client_proc_t glGenTextures;
94 glGetError_client_proc_t glGetError;
95 glGetFixedv_client_proc_t glGetFixedv;
96 glGetIntegerv_client_proc_t glGetIntegerv;
97 glGetLightxv_client_proc_t glGetLightxv;
98 glGetMaterialxv_client_proc_t glGetMaterialxv;
99 glGetPointerv_client_proc_t glGetPointerv;
100 glGetString_client_proc_t glGetString;
101 glGetTexEnviv_client_proc_t glGetTexEnviv;
102 glGetTexEnvxv_client_proc_t glGetTexEnvxv;
103 glGetTexParameteriv_client_proc_t glGetTexParameteriv;
104 glGetTexParameterxv_client_proc_t glGetTexParameterxv;
105 glHint_client_proc_t glHint;
106 glIsBuffer_client_proc_t glIsBuffer;
107 glIsEnabled_client_proc_t glIsEnabled;
108 glIsTexture_client_proc_t glIsTexture;
109 glLightModelx_client_proc_t glLightModelx;
110 glLightModelxv_client_proc_t glLightModelxv;
111 glLightx_client_proc_t glLightx;
112 glLightxv_client_proc_t glLightxv;
113 glLineWidthx_client_proc_t glLineWidthx;
114 glLoadIdentity_client_proc_t glLoadIdentity;
115 glLoadMatrixx_client_proc_t glLoadMatrixx;
116 glLogicOp_client_proc_t glLogicOp;
117 glMaterialx_client_proc_t glMaterialx;
118 glMaterialxv_client_proc_t glMaterialxv;
119 glMatrixMode_client_proc_t glMatrixMode;
120 glMultMatrixx_client_proc_t glMultMatrixx;
121 glMultiTexCoord4x_client_proc_t glMultiTexCoord4x;
122 glNormal3x_client_proc_t glNormal3x;
123 glNormalPointer_client_proc_t glNormalPointer;
124 glOrthox_client_proc_t glOrthox;
125 glPixelStorei_client_proc_t glPixelStorei;
126 glPointParameterx_client_proc_t glPointParameterx;
127 glPointParameterxv_client_proc_t glPointParameterxv;
128 glPointSizex_client_proc_t glPointSizex;
129 glPolygonOffsetx_client_proc_t glPolygonOffsetx;
130 glPopMatrix_client_proc_t glPopMatrix;
131 glPushMatrix_client_proc_t glPushMatrix;
132 glReadPixels_client_proc_t glReadPixels;
133 glRotatex_client_proc_t glRotatex;
134 glSampleCoverage_client_proc_t glSampleCoverage;
135 glSampleCoveragex_client_proc_t glSampleCoveragex;
136 glScalex_client_proc_t glScalex;
137 glScissor_client_proc_t glScissor;
138 glShadeModel_client_proc_t glShadeModel;
139 glStencilFunc_client_proc_t glStencilFunc;
140 glStencilMask_client_proc_t glStencilMask;
141 glStencilOp_client_proc_t glStencilOp;
142 glTexCoordPointer_client_proc_t glTexCoordPointer;
143 glTexEnvi_client_proc_t glTexEnvi;
144 glTexEnvx_client_proc_t glTexEnvx;
145 glTexEnviv_client_proc_t glTexEnviv;
146 glTexEnvxv_client_proc_t glTexEnvxv;
147 glTexImage2D_client_proc_t glTexImage2D;
148 glTexParameteri_client_proc_t glTexParameteri;
149 glTexParameterx_client_proc_t glTexParameterx;
150 glTexParameteriv_client_proc_t glTexParameteriv;
151 glTexParameterxv_client_proc_t glTexParameterxv;
152 glTexSubImage2D_client_proc_t glTexSubImage2D;
153 glTranslatex_client_proc_t glTranslatex;
154 glVertexPointer_client_proc_t glVertexPointer;
155 glViewport_client_proc_t glViewport;
156 glPointSizePointerOES_client_proc_t glPointSizePointerOES;
157 glVertexPointerOffset_client_proc_t glVertexPointerOffset;
158 glColorPointerOffset_client_proc_t glColorPointerOffset;
159 glNormalPointerOffset_client_proc_t glNormalPointerOffset;
160 glPointSizePointerOffset_client_proc_t glPointSizePointerOffset;
161 glTexCoordPointerOffset_client_proc_t glTexCoordPointerOffset;
162 glWeightPointerOffset_client_proc_t glWeightPointerOffset;
163 glMatrixIndexPointerOffset_client_proc_t glMatrixIndexPointerOffset;
164 glVertexPointerData_client_proc_t glVertexPointerData;
165 glColorPointerData_client_proc_t glColorPointerData;
166 glNormalPointerData_client_proc_t glNormalPointerData;
167 glTexCoordPointerData_client_proc_t glTexCoordPointerData;
168 glPointSizePointerData_client_proc_t glPointSizePointerData;
169 glWeightPointerData_client_proc_t glWeightPointerData;
170 glMatrixIndexPointerData_client_proc_t glMatrixIndexPointerData;
171 glDrawElementsOffset_client_proc_t glDrawElementsOffset;
172 glDrawElementsData_client_proc_t glDrawElementsData;
173 glGetCompressedTextureFormats_client_proc_t glGetCompressedTextureFormats;
174 glFinishRoundTrip_client_proc_t glFinishRoundTrip;
175 glBlendEquationSeparateOES_client_proc_t glBlendEquationSeparateOES;
176 glBlendFuncSeparateOES_client_proc_t glBlendFuncSeparateOES;
177 glBlendEquationOES_client_proc_t glBlendEquationOES;
178 glDrawTexsOES_client_proc_t glDrawTexsOES;
179 glDrawTexiOES_client_proc_t glDrawTexiOES;
180 glDrawTexxOES_client_proc_t glDrawTexxOES;
181 glDrawTexsvOES_client_proc_t glDrawTexsvOES;
182 glDrawTexivOES_client_proc_t glDrawTexivOES;
183 glDrawTexxvOES_client_proc_t glDrawTexxvOES;
184 glDrawTexfOES_client_proc_t glDrawTexfOES;
185 glDrawTexfvOES_client_proc_t glDrawTexfvOES;
186 glEGLImageTargetTexture2DOES_client_proc_t glEGLImageTargetTexture2DOES;
187 glEGLImageTargetRenderbufferStorageOES_client_proc_t glEGLImageTargetRenderbufferStorageOES;
188 glAlphaFuncxOES_client_proc_t glAlphaFuncxOES;
189 glClearColorxOES_client_proc_t glClearColorxOES;
190 glClearDepthxOES_client_proc_t glClearDepthxOES;
191 glClipPlanexOES_client_proc_t glClipPlanexOES;
192 glClipPlanexIMG_client_proc_t glClipPlanexIMG;
193 glColor4xOES_client_proc_t glColor4xOES;
194 glDepthRangexOES_client_proc_t glDepthRangexOES;
195 glFogxOES_client_proc_t glFogxOES;
196 glFogxvOES_client_proc_t glFogxvOES;
197 glFrustumxOES_client_proc_t glFrustumxOES;
198 glGetClipPlanexOES_client_proc_t glGetClipPlanexOES;
199 glGetClipPlanex_client_proc_t glGetClipPlanex;
200 glGetFixedvOES_client_proc_t glGetFixedvOES;
201 glGetLightxvOES_client_proc_t glGetLightxvOES;
202 glGetMaterialxvOES_client_proc_t glGetMaterialxvOES;
203 glGetTexEnvxvOES_client_proc_t glGetTexEnvxvOES;
204 glGetTexParameterxvOES_client_proc_t glGetTexParameterxvOES;
205 glLightModelxOES_client_proc_t glLightModelxOES;
206 glLightModelxvOES_client_proc_t glLightModelxvOES;
207 glLightxOES_client_proc_t glLightxOES;
208 glLightxvOES_client_proc_t glLightxvOES;
209 glLineWidthxOES_client_proc_t glLineWidthxOES;
210 glLoadMatrixxOES_client_proc_t glLoadMatrixxOES;
211 glMaterialxOES_client_proc_t glMaterialxOES;
212 glMaterialxvOES_client_proc_t glMaterialxvOES;
213 glMultMatrixxOES_client_proc_t glMultMatrixxOES;
214 glMultiTexCoord4xOES_client_proc_t glMultiTexCoord4xOES;
215 glNormal3xOES_client_proc_t glNormal3xOES;
216 glOrthoxOES_client_proc_t glOrthoxOES;
217 glPointParameterxOES_client_proc_t glPointParameterxOES;
218 glPointParameterxvOES_client_proc_t glPointParameterxvOES;
219 glPointSizexOES_client_proc_t glPointSizexOES;
220 glPolygonOffsetxOES_client_proc_t glPolygonOffsetxOES;
221 glRotatexOES_client_proc_t glRotatexOES;
222 glSampleCoveragexOES_client_proc_t glSampleCoveragexOES;
223 glScalexOES_client_proc_t glScalexOES;
224 glTexEnvxOES_client_proc_t glTexEnvxOES;
225 glTexEnvxvOES_client_proc_t glTexEnvxvOES;
226 glTexParameterxOES_client_proc_t glTexParameterxOES;
227 glTexParameterxvOES_client_proc_t glTexParameterxvOES;
228 glTranslatexOES_client_proc_t glTranslatexOES;
229 glIsRenderbufferOES_client_proc_t glIsRenderbufferOES;
230 glBindRenderbufferOES_client_proc_t glBindRenderbufferOES;
231 glDeleteRenderbuffersOES_client_proc_t glDeleteRenderbuffersOES;
232 glGenRenderbuffersOES_client_proc_t glGenRenderbuffersOES;
233 glRenderbufferStorageOES_client_proc_t glRenderbufferStorageOES;
234 glGetRenderbufferParameterivOES_client_proc_t glGetRenderbufferParameterivOES;
235 glIsFramebufferOES_client_proc_t glIsFramebufferOES;
236 glBindFramebufferOES_client_proc_t glBindFramebufferOES;
237 glDeleteFramebuffersOES_client_proc_t glDeleteFramebuffersOES;
238 glGenFramebuffersOES_client_proc_t glGenFramebuffersOES;
239 glCheckFramebufferStatusOES_client_proc_t glCheckFramebufferStatusOES;
240 glFramebufferRenderbufferOES_client_proc_t glFramebufferRenderbufferOES;
241 glFramebufferTexture2DOES_client_proc_t glFramebufferTexture2DOES;
242 glGetFramebufferAttachmentParameterivOES_client_proc_t glGetFramebufferAttachmentParameterivOES;
243 glGenerateMipmapOES_client_proc_t glGenerateMipmapOES;
244 glMapBufferOES_client_proc_t glMapBufferOES;
245 glUnmapBufferOES_client_proc_t glUnmapBufferOES;
246 glGetBufferPointervOES_client_proc_t glGetBufferPointervOES;
247 glCurrentPaletteMatrixOES_client_proc_t glCurrentPaletteMatrixOES;
248 glLoadPaletteFromModelViewMatrixOES_client_proc_t glLoadPaletteFromModelViewMatrixOES;
249 glMatrixIndexPointerOES_client_proc_t glMatrixIndexPointerOES;
250 glWeightPointerOES_client_proc_t glWeightPointerOES;
251 glQueryMatrixxOES_client_proc_t glQueryMatrixxOES;
252 glDepthRangefOES_client_proc_t glDepthRangefOES;
253 glFrustumfOES_client_proc_t glFrustumfOES;
254 glOrthofOES_client_proc_t glOrthofOES;
255 glClipPlanefOES_client_proc_t glClipPlanefOES;
256 glClipPlanefIMG_client_proc_t glClipPlanefIMG;
257 glGetClipPlanefOES_client_proc_t glGetClipPlanefOES;
258 glClearDepthfOES_client_proc_t glClearDepthfOES;
259 glTexGenfOES_client_proc_t glTexGenfOES;
260 glTexGenfvOES_client_proc_t glTexGenfvOES;
261 glTexGeniOES_client_proc_t glTexGeniOES;
262 glTexGenivOES_client_proc_t glTexGenivOES;
263 glTexGenxOES_client_proc_t glTexGenxOES;
264 glTexGenxvOES_client_proc_t glTexGenxvOES;
265 glGetTexGenfvOES_client_proc_t glGetTexGenfvOES;
266 glGetTexGenivOES_client_proc_t glGetTexGenivOES;
267 glGetTexGenxvOES_client_proc_t glGetTexGenxvOES;
268 glBindVertexArrayOES_client_proc_t glBindVertexArrayOES;
269 glDeleteVertexArraysOES_client_proc_t glDeleteVertexArraysOES;
270 glGenVertexArraysOES_client_proc_t glGenVertexArraysOES;
271 glIsVertexArrayOES_client_proc_t glIsVertexArrayOES;
272 glDiscardFramebufferEXT_client_proc_t glDiscardFramebufferEXT;
273 glMultiDrawArraysEXT_client_proc_t glMultiDrawArraysEXT;
274 glMultiDrawElementsEXT_client_proc_t glMultiDrawElementsEXT;
275 glMultiDrawArraysSUN_client_proc_t glMultiDrawArraysSUN;
276 glMultiDrawElementsSUN_client_proc_t glMultiDrawElementsSUN;
277 glRenderbufferStorageMultisampleIMG_client_proc_t glRenderbufferStorageMultisampleIMG;
278 glFramebufferTexture2DMultisampleIMG_client_proc_t glFramebufferTexture2DMultisampleIMG;
279 glDeleteFencesNV_client_proc_t glDeleteFencesNV;
280 glGenFencesNV_client_proc_t glGenFencesNV;
281 glIsFenceNV_client_proc_t glIsFenceNV;
282 glTestFenceNV_client_proc_t glTestFenceNV;
283 glGetFenceivNV_client_proc_t glGetFenceivNV;
284 glFinishFenceNV_client_proc_t glFinishFenceNV;
285 glSetFenceNV_client_proc_t glSetFenceNV;
286 glGetDriverControlsQCOM_client_proc_t glGetDriverControlsQCOM;
287 glGetDriverControlStringQCOM_client_proc_t glGetDriverControlStringQCOM;
288 glEnableDriverControlQCOM_client_proc_t glEnableDriverControlQCOM;
289 glDisableDriverControlQCOM_client_proc_t glDisableDriverControlQCOM;
290 glExtGetTexturesQCOM_client_proc_t glExtGetTexturesQCOM;
291 glExtGetBuffersQCOM_client_proc_t glExtGetBuffersQCOM;
292 glExtGetRenderbuffersQCOM_client_proc_t glExtGetRenderbuffersQCOM;
293 glExtGetFramebuffersQCOM_client_proc_t glExtGetFramebuffersQCOM;
294 glExtGetTexLevelParameterivQCOM_client_proc_t glExtGetTexLevelParameterivQCOM;
295 glExtTexObjectStateOverrideiQCOM_client_proc_t glExtTexObjectStateOverrideiQCOM;
296 glExtGetTexSubImageQCOM_client_proc_t glExtGetTexSubImageQCOM;
297 glExtGetBufferPointervQCOM_client_proc_t glExtGetBufferPointervQCOM;
298 glExtGetShadersQCOM_client_proc_t glExtGetShadersQCOM;
299 glExtGetProgramsQCOM_client_proc_t glExtGetProgramsQCOM;
300 glExtIsProgramBinaryQCOM_client_proc_t glExtIsProgramBinaryQCOM;
301 glExtGetProgramBinarySourceQCOM_client_proc_t glExtGetProgramBinarySourceQCOM;
302 glStartTilingQCOM_client_proc_t glStartTilingQCOM;
303 glEndTilingQCOM_client_proc_t glEndTilingQCOM;
Yahan Zhouc89acb22016-07-11 11:51:43 -0700304 virtual ~gl_client_context_t() {}
keunyoungb85b2752013-03-08 12:28:03 -0800305
306 typedef gl_client_context_t *CONTEXT_ACCESSOR_TYPE(void);
307 static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f);
308 int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData);
David 'Digit' Turnere01d5f42014-10-30 21:32:28 +0100309 virtual void setError(unsigned int error){ (void)error; };
keunyoungb85b2752013-03-08 12:28:03 -0800310 virtual unsigned int getError(){ return 0; };
311};
312
313#endif