1 // Generated Code - DO NOT EDIT !! 2 // generated by 'emugen' 3 #ifndef __gl2_client_context_t_h 4 #define __gl2_client_context_t_h 5 6 #include "gl2_client_proc.h" 7 8 #include "gl2_types.h" 9 10 11 struct gl2_client_context_t { 12 13 glActiveTexture_client_proc_t glActiveTexture; 14 glAttachShader_client_proc_t glAttachShader; 15 glBindAttribLocation_client_proc_t glBindAttribLocation; 16 glBindBuffer_client_proc_t glBindBuffer; 17 glBindFramebuffer_client_proc_t glBindFramebuffer; 18 glBindRenderbuffer_client_proc_t glBindRenderbuffer; 19 glBindTexture_client_proc_t glBindTexture; 20 glBlendColor_client_proc_t glBlendColor; 21 glBlendEquation_client_proc_t glBlendEquation; 22 glBlendEquationSeparate_client_proc_t glBlendEquationSeparate; 23 glBlendFunc_client_proc_t glBlendFunc; 24 glBlendFuncSeparate_client_proc_t glBlendFuncSeparate; 25 glBufferData_client_proc_t glBufferData; 26 glBufferSubData_client_proc_t glBufferSubData; 27 glCheckFramebufferStatus_client_proc_t glCheckFramebufferStatus; 28 glClear_client_proc_t glClear; 29 glClearColor_client_proc_t glClearColor; 30 glClearDepthf_client_proc_t glClearDepthf; 31 glClearStencil_client_proc_t glClearStencil; 32 glColorMask_client_proc_t glColorMask; 33 glCompileShader_client_proc_t glCompileShader; 34 glCompressedTexImage2D_client_proc_t glCompressedTexImage2D; 35 glCompressedTexSubImage2D_client_proc_t glCompressedTexSubImage2D; 36 glCopyTexImage2D_client_proc_t glCopyTexImage2D; 37 glCopyTexSubImage2D_client_proc_t glCopyTexSubImage2D; 38 glCreateProgram_client_proc_t glCreateProgram; 39 glCreateShader_client_proc_t glCreateShader; 40 glCullFace_client_proc_t glCullFace; 41 glDeleteBuffers_client_proc_t glDeleteBuffers; 42 glDeleteFramebuffers_client_proc_t glDeleteFramebuffers; 43 glDeleteProgram_client_proc_t glDeleteProgram; 44 glDeleteRenderbuffers_client_proc_t glDeleteRenderbuffers; 45 glDeleteShader_client_proc_t glDeleteShader; 46 glDeleteTextures_client_proc_t glDeleteTextures; 47 glDepthFunc_client_proc_t glDepthFunc; 48 glDepthMask_client_proc_t glDepthMask; 49 glDepthRangef_client_proc_t glDepthRangef; 50 glDetachShader_client_proc_t glDetachShader; 51 glDisable_client_proc_t glDisable; 52 glDisableVertexAttribArray_client_proc_t glDisableVertexAttribArray; 53 glDrawArrays_client_proc_t glDrawArrays; 54 glDrawElements_client_proc_t glDrawElements; 55 glEnable_client_proc_t glEnable; 56 glEnableVertexAttribArray_client_proc_t glEnableVertexAttribArray; 57 glFinish_client_proc_t glFinish; 58 glFlush_client_proc_t glFlush; 59 glFramebufferRenderbuffer_client_proc_t glFramebufferRenderbuffer; 60 glFramebufferTexture2D_client_proc_t glFramebufferTexture2D; 61 glFrontFace_client_proc_t glFrontFace; 62 glGenBuffers_client_proc_t glGenBuffers; 63 glGenerateMipmap_client_proc_t glGenerateMipmap; 64 glGenFramebuffers_client_proc_t glGenFramebuffers; 65 glGenRenderbuffers_client_proc_t glGenRenderbuffers; 66 glGenTextures_client_proc_t glGenTextures; 67 glGetActiveAttrib_client_proc_t glGetActiveAttrib; 68 glGetActiveUniform_client_proc_t glGetActiveUniform; 69 glGetAttachedShaders_client_proc_t glGetAttachedShaders; 70 glGetAttribLocation_client_proc_t glGetAttribLocation; 71 glGetBooleanv_client_proc_t glGetBooleanv; 72 glGetBufferParameteriv_client_proc_t glGetBufferParameteriv; 73 glGetError_client_proc_t glGetError; 74 glGetFloatv_client_proc_t glGetFloatv; 75 glGetFramebufferAttachmentParameteriv_client_proc_t glGetFramebufferAttachmentParameteriv; 76 glGetIntegerv_client_proc_t glGetIntegerv; 77 glGetProgramiv_client_proc_t glGetProgramiv; 78 glGetProgramInfoLog_client_proc_t glGetProgramInfoLog; 79 glGetRenderbufferParameteriv_client_proc_t glGetRenderbufferParameteriv; 80 glGetShaderiv_client_proc_t glGetShaderiv; 81 glGetShaderInfoLog_client_proc_t glGetShaderInfoLog; 82 glGetShaderPrecisionFormat_client_proc_t glGetShaderPrecisionFormat; 83 glGetShaderSource_client_proc_t glGetShaderSource; 84 glGetString_client_proc_t glGetString; 85 glGetTexParameterfv_client_proc_t glGetTexParameterfv; 86 glGetTexParameteriv_client_proc_t glGetTexParameteriv; 87 glGetUniformfv_client_proc_t glGetUniformfv; 88 glGetUniformiv_client_proc_t glGetUniformiv; 89 glGetUniformLocation_client_proc_t glGetUniformLocation; 90 glGetVertexAttribfv_client_proc_t glGetVertexAttribfv; 91 glGetVertexAttribiv_client_proc_t glGetVertexAttribiv; 92 glGetVertexAttribPointerv_client_proc_t glGetVertexAttribPointerv; 93 glHint_client_proc_t glHint; 94 glIsBuffer_client_proc_t glIsBuffer; 95 glIsEnabled_client_proc_t glIsEnabled; 96 glIsFramebuffer_client_proc_t glIsFramebuffer; 97 glIsProgram_client_proc_t glIsProgram; 98 glIsRenderbuffer_client_proc_t glIsRenderbuffer; 99 glIsShader_client_proc_t glIsShader; 100 glIsTexture_client_proc_t glIsTexture; 101 glLineWidth_client_proc_t glLineWidth; 102 glLinkProgram_client_proc_t glLinkProgram; 103 glPixelStorei_client_proc_t glPixelStorei; 104 glPolygonOffset_client_proc_t glPolygonOffset; 105 glReadPixels_client_proc_t glReadPixels; 106 glReleaseShaderCompiler_client_proc_t glReleaseShaderCompiler; 107 glRenderbufferStorage_client_proc_t glRenderbufferStorage; 108 glSampleCoverage_client_proc_t glSampleCoverage; 109 glScissor_client_proc_t glScissor; 110 glShaderBinary_client_proc_t glShaderBinary; 111 glShaderSource_client_proc_t glShaderSource; 112 glStencilFunc_client_proc_t glStencilFunc; 113 glStencilFuncSeparate_client_proc_t glStencilFuncSeparate; 114 glStencilMask_client_proc_t glStencilMask; 115 glStencilMaskSeparate_client_proc_t glStencilMaskSeparate; 116 glStencilOp_client_proc_t glStencilOp; 117 glStencilOpSeparate_client_proc_t glStencilOpSeparate; 118 glTexImage2D_client_proc_t glTexImage2D; 119 glTexParameterf_client_proc_t glTexParameterf; 120 glTexParameterfv_client_proc_t glTexParameterfv; 121 glTexParameteri_client_proc_t glTexParameteri; 122 glTexParameteriv_client_proc_t glTexParameteriv; 123 glTexSubImage2D_client_proc_t glTexSubImage2D; 124 glUniform1f_client_proc_t glUniform1f; 125 glUniform1fv_client_proc_t glUniform1fv; 126 glUniform1i_client_proc_t glUniform1i; 127 glUniform1iv_client_proc_t glUniform1iv; 128 glUniform2f_client_proc_t glUniform2f; 129 glUniform2fv_client_proc_t glUniform2fv; 130 glUniform2i_client_proc_t glUniform2i; 131 glUniform2iv_client_proc_t glUniform2iv; 132 glUniform3f_client_proc_t glUniform3f; 133 glUniform3fv_client_proc_t glUniform3fv; 134 glUniform3i_client_proc_t glUniform3i; 135 glUniform3iv_client_proc_t glUniform3iv; 136 glUniform4f_client_proc_t glUniform4f; 137 glUniform4fv_client_proc_t glUniform4fv; 138 glUniform4i_client_proc_t glUniform4i; 139 glUniform4iv_client_proc_t glUniform4iv; 140 glUniformMatrix2fv_client_proc_t glUniformMatrix2fv; 141 glUniformMatrix3fv_client_proc_t glUniformMatrix3fv; 142 glUniformMatrix4fv_client_proc_t glUniformMatrix4fv; 143 glUseProgram_client_proc_t glUseProgram; 144 glValidateProgram_client_proc_t glValidateProgram; 145 glVertexAttrib1f_client_proc_t glVertexAttrib1f; 146 glVertexAttrib1fv_client_proc_t glVertexAttrib1fv; 147 glVertexAttrib2f_client_proc_t glVertexAttrib2f; 148 glVertexAttrib2fv_client_proc_t glVertexAttrib2fv; 149 glVertexAttrib3f_client_proc_t glVertexAttrib3f; 150 glVertexAttrib3fv_client_proc_t glVertexAttrib3fv; 151 glVertexAttrib4f_client_proc_t glVertexAttrib4f; 152 glVertexAttrib4fv_client_proc_t glVertexAttrib4fv; 153 glVertexAttribPointer_client_proc_t glVertexAttribPointer; 154 glViewport_client_proc_t glViewport; 155 glEGLImageTargetTexture2DOES_client_proc_t glEGLImageTargetTexture2DOES; 156 glEGLImageTargetRenderbufferStorageOES_client_proc_t glEGLImageTargetRenderbufferStorageOES; 157 glGetProgramBinaryOES_client_proc_t glGetProgramBinaryOES; 158 glProgramBinaryOES_client_proc_t glProgramBinaryOES; 159 glMapBufferOES_client_proc_t glMapBufferOES; 160 glUnmapBufferOES_client_proc_t glUnmapBufferOES; 161 glTexImage3DOES_client_proc_t glTexImage3DOES; 162 glTexSubImage3DOES_client_proc_t glTexSubImage3DOES; 163 glCopyTexSubImage3DOES_client_proc_t glCopyTexSubImage3DOES; 164 glCompressedTexImage3DOES_client_proc_t glCompressedTexImage3DOES; 165 glCompressedTexSubImage3DOES_client_proc_t glCompressedTexSubImage3DOES; 166 glFramebufferTexture3DOES_client_proc_t glFramebufferTexture3DOES; 167 glBindVertexArrayOES_client_proc_t glBindVertexArrayOES; 168 glDeleteVertexArraysOES_client_proc_t glDeleteVertexArraysOES; 169 glGenVertexArraysOES_client_proc_t glGenVertexArraysOES; 170 glIsVertexArrayOES_client_proc_t glIsVertexArrayOES; 171 glDiscardFramebufferEXT_client_proc_t glDiscardFramebufferEXT; 172 glMultiDrawArraysEXT_client_proc_t glMultiDrawArraysEXT; 173 glMultiDrawElementsEXT_client_proc_t glMultiDrawElementsEXT; 174 glGetPerfMonitorGroupsAMD_client_proc_t glGetPerfMonitorGroupsAMD; 175 glGetPerfMonitorCountersAMD_client_proc_t glGetPerfMonitorCountersAMD; 176 glGetPerfMonitorGroupStringAMD_client_proc_t glGetPerfMonitorGroupStringAMD; 177 glGetPerfMonitorCounterStringAMD_client_proc_t glGetPerfMonitorCounterStringAMD; 178 glGetPerfMonitorCounterInfoAMD_client_proc_t glGetPerfMonitorCounterInfoAMD; 179 glGenPerfMonitorsAMD_client_proc_t glGenPerfMonitorsAMD; 180 glDeletePerfMonitorsAMD_client_proc_t glDeletePerfMonitorsAMD; 181 glSelectPerfMonitorCountersAMD_client_proc_t glSelectPerfMonitorCountersAMD; 182 glBeginPerfMonitorAMD_client_proc_t glBeginPerfMonitorAMD; 183 glEndPerfMonitorAMD_client_proc_t glEndPerfMonitorAMD; 184 glGetPerfMonitorCounterDataAMD_client_proc_t glGetPerfMonitorCounterDataAMD; 185 glRenderbufferStorageMultisampleIMG_client_proc_t glRenderbufferStorageMultisampleIMG; 186 glFramebufferTexture2DMultisampleIMG_client_proc_t glFramebufferTexture2DMultisampleIMG; 187 glDeleteFencesNV_client_proc_t glDeleteFencesNV; 188 glGenFencesNV_client_proc_t glGenFencesNV; 189 glIsFenceNV_client_proc_t glIsFenceNV; 190 glTestFenceNV_client_proc_t glTestFenceNV; 191 glGetFenceivNV_client_proc_t glGetFenceivNV; 192 glFinishFenceNV_client_proc_t glFinishFenceNV; 193 glSetFenceNV_client_proc_t glSetFenceNV; 194 glCoverageMaskNV_client_proc_t glCoverageMaskNV; 195 glCoverageOperationNV_client_proc_t glCoverageOperationNV; 196 glGetDriverControlsQCOM_client_proc_t glGetDriverControlsQCOM; 197 glGetDriverControlStringQCOM_client_proc_t glGetDriverControlStringQCOM; 198 glEnableDriverControlQCOM_client_proc_t glEnableDriverControlQCOM; 199 glDisableDriverControlQCOM_client_proc_t glDisableDriverControlQCOM; 200 glExtGetTexturesQCOM_client_proc_t glExtGetTexturesQCOM; 201 glExtGetBuffersQCOM_client_proc_t glExtGetBuffersQCOM; 202 glExtGetRenderbuffersQCOM_client_proc_t glExtGetRenderbuffersQCOM; 203 glExtGetFramebuffersQCOM_client_proc_t glExtGetFramebuffersQCOM; 204 glExtGetTexLevelParameterivQCOM_client_proc_t glExtGetTexLevelParameterivQCOM; 205 glExtTexObjectStateOverrideiQCOM_client_proc_t glExtTexObjectStateOverrideiQCOM; 206 glExtGetTexSubImageQCOM_client_proc_t glExtGetTexSubImageQCOM; 207 glExtGetBufferPointervQCOM_client_proc_t glExtGetBufferPointervQCOM; 208 glExtGetShadersQCOM_client_proc_t glExtGetShadersQCOM; 209 glExtGetProgramsQCOM_client_proc_t glExtGetProgramsQCOM; 210 glExtIsProgramBinaryQCOM_client_proc_t glExtIsProgramBinaryQCOM; 211 glExtGetProgramBinarySourceQCOM_client_proc_t glExtGetProgramBinarySourceQCOM; 212 glStartTilingQCOM_client_proc_t glStartTilingQCOM; 213 glEndTilingQCOM_client_proc_t glEndTilingQCOM; 214 glVertexAttribPointerData_client_proc_t glVertexAttribPointerData; 215 glVertexAttribPointerOffset_client_proc_t glVertexAttribPointerOffset; 216 glDrawElementsOffset_client_proc_t glDrawElementsOffset; 217 glDrawElementsData_client_proc_t glDrawElementsData; 218 glGetCompressedTextureFormats_client_proc_t glGetCompressedTextureFormats; 219 glShaderString_client_proc_t glShaderString; 220 glFinishRoundTrip_client_proc_t glFinishRoundTrip; ~gl2_client_context_tgl2_client_context_t221 virtual ~gl2_client_context_t() {} 222 223 typedef gl2_client_context_t *CONTEXT_ACCESSOR_TYPE(void); 224 static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f); 225 int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData); setErrorgl2_client_context_t226 virtual void setError(unsigned int error){ (void)error; }; getErrorgl2_client_context_t227 virtual unsigned int getError(){ return 0; }; 228 }; 229 230 #endif 231