1 // Generated Code - DO NOT EDIT !! 2 // generated by 'emugen' 3 4 #ifndef GUARD_gl2_encoder_context_t 5 #define GUARD_gl2_encoder_context_t 6 7 #include "IOStream.h" 8 #include "gl2_client_context.h" 9 10 11 #include <string.h> 12 #include "glUtils.h" 13 #include "GL2EncoderUtils.h" 14 15 struct gl2_encoder_context_t : public gl2_client_context_t { 16 17 IOStream *m_stream; 18 19 gl2_encoder_context_t(IOStream *stream); 20 21 22 }; 23 24 extern "C" { 25 void glActiveTexture_enc(void *self , GLenum texture); 26 void glAttachShader_enc(void *self , GLuint program, GLuint shader); 27 void glBindAttribLocation_enc(void *self , GLuint program, GLuint index, const GLchar* name); 28 void glBindBuffer_enc(void *self , GLenum target, GLuint buffer); 29 void glBindFramebuffer_enc(void *self , GLenum target, GLuint framebuffer); 30 void glBindRenderbuffer_enc(void *self , GLenum target, GLuint renderbuffer); 31 void glBindTexture_enc(void *self , GLenum target, GLuint texture); 32 void glBlendColor_enc(void *self , GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 33 void glBlendEquation_enc(void *self , GLenum mode); 34 void glBlendEquationSeparate_enc(void *self , GLenum modeRGB, GLenum modeAlpha); 35 void glBlendFunc_enc(void *self , GLenum sfactor, GLenum dfactor); 36 void glBlendFuncSeparate_enc(void *self , GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha); 37 void glBufferData_enc(void *self , GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); 38 void glBufferSubData_enc(void *self , GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data); 39 GLenum glCheckFramebufferStatus_enc(void *self , GLenum target); 40 void glClear_enc(void *self , GLbitfield mask); 41 void glClearColor_enc(void *self , GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 42 void glClearDepthf_enc(void *self , GLclampf depth); 43 void glClearStencil_enc(void *self , GLint s); 44 void glColorMask_enc(void *self , GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); 45 void glCompileShader_enc(void *self , GLuint shader); 46 void glCompressedTexImage2D_enc(void *self , GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data); 47 void glCompressedTexSubImage2D_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data); 48 void glCopyTexImage2D_enc(void *self , GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border); 49 void glCopyTexSubImage2D_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height); 50 GLuint glCreateProgram_enc(void *self ); 51 GLuint glCreateShader_enc(void *self , GLenum type); 52 void glCullFace_enc(void *self , GLenum mode); 53 void glDeleteBuffers_enc(void *self , GLsizei n, const GLuint* buffers); 54 void glDeleteFramebuffers_enc(void *self , GLsizei n, const GLuint* framebuffers); 55 void glDeleteProgram_enc(void *self , GLuint program); 56 void glDeleteRenderbuffers_enc(void *self , GLsizei n, const GLuint* renderbuffers); 57 void glDeleteShader_enc(void *self , GLuint shader); 58 void glDeleteTextures_enc(void *self , GLsizei n, const GLuint* textures); 59 void glDepthFunc_enc(void *self , GLenum func); 60 void glDepthMask_enc(void *self , GLboolean flag); 61 void glDepthRangef_enc(void *self , GLclampf zNear, GLclampf zFar); 62 void glDetachShader_enc(void *self , GLuint program, GLuint shader); 63 void glDisable_enc(void *self , GLenum cap); 64 void glDisableVertexAttribArray_enc(void *self , GLuint index); 65 void glDrawArrays_enc(void *self , GLenum mode, GLint first, GLsizei count); 66 void glDrawElements_enc(void *self , GLenum mode, GLsizei count, GLenum type, const GLvoid* indices); 67 void glEnable_enc(void *self , GLenum cap); 68 void glEnableVertexAttribArray_enc(void *self , GLuint index); 69 void glFinish_enc(void *self ); 70 void glFlush_enc(void *self ); 71 void glFramebufferRenderbuffer_enc(void *self , GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer); 72 void glFramebufferTexture2D_enc(void *self , GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level); 73 void glFrontFace_enc(void *self , GLenum mode); 74 void glGenBuffers_enc(void *self , GLsizei n, GLuint* buffers); 75 void glGenerateMipmap_enc(void *self , GLenum target); 76 void glGenFramebuffers_enc(void *self , GLsizei n, GLuint* framebuffers); 77 void glGenRenderbuffers_enc(void *self , GLsizei n, GLuint* renderbuffers); 78 void glGenTextures_enc(void *self , GLsizei n, GLuint* textures); 79 void glGetActiveAttrib_enc(void *self , GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); 80 void glGetActiveUniform_enc(void *self , GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name); 81 void glGetAttachedShaders_enc(void *self , GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders); 82 int glGetAttribLocation_enc(void *self , GLuint program, const GLchar* name); 83 void glGetBooleanv_enc(void *self , GLenum pname, GLboolean* params); 84 void glGetBufferParameteriv_enc(void *self , GLenum target, GLenum pname, GLint* params); 85 GLenum glGetError_enc(void *self ); 86 void glGetFloatv_enc(void *self , GLenum pname, GLfloat* params); 87 void glGetFramebufferAttachmentParameteriv_enc(void *self , GLenum target, GLenum attachment, GLenum pname, GLint* params); 88 void glGetIntegerv_enc(void *self , GLenum pname, GLint* params); 89 void glGetProgramiv_enc(void *self , GLuint program, GLenum pname, GLint* params); 90 void glGetProgramInfoLog_enc(void *self , GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog); 91 void glGetRenderbufferParameteriv_enc(void *self , GLenum target, GLenum pname, GLint* params); 92 void glGetShaderiv_enc(void *self , GLuint shader, GLenum pname, GLint* params); 93 void glGetShaderInfoLog_enc(void *self , GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog); 94 void glGetShaderPrecisionFormat_enc(void *self , GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision); 95 void glGetShaderSource_enc(void *self , GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source); 96 const GLubyte* glGetString_enc(void *self , GLenum name); 97 void glGetTexParameterfv_enc(void *self , GLenum target, GLenum pname, GLfloat* params); 98 void glGetTexParameteriv_enc(void *self , GLenum target, GLenum pname, GLint* params); 99 void glGetUniformfv_enc(void *self , GLuint program, GLint location, GLfloat* params); 100 void glGetUniformiv_enc(void *self , GLuint program, GLint location, GLint* params); 101 int glGetUniformLocation_enc(void *self , GLuint program, const GLchar* name); 102 void glGetVertexAttribfv_enc(void *self , GLuint index, GLenum pname, GLfloat* params); 103 void glGetVertexAttribiv_enc(void *self , GLuint index, GLenum pname, GLint* params); 104 void glGetVertexAttribPointerv_enc(void *self , GLuint index, GLenum pname, GLvoid** pointer); 105 void glHint_enc(void *self , GLenum target, GLenum mode); 106 GLboolean glIsBuffer_enc(void *self , GLuint buffer); 107 GLboolean glIsEnabled_enc(void *self , GLenum cap); 108 GLboolean glIsFramebuffer_enc(void *self , GLuint framebuffer); 109 GLboolean glIsProgram_enc(void *self , GLuint program); 110 GLboolean glIsRenderbuffer_enc(void *self , GLuint renderbuffer); 111 GLboolean glIsShader_enc(void *self , GLuint shader); 112 GLboolean glIsTexture_enc(void *self , GLuint texture); 113 void glLineWidth_enc(void *self , GLfloat width); 114 void glLinkProgram_enc(void *self , GLuint program); 115 void glPixelStorei_enc(void *self , GLenum pname, GLint param); 116 void glPolygonOffset_enc(void *self , GLfloat factor, GLfloat units); 117 void glReadPixels_enc(void *self , GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels); 118 void glReleaseShaderCompiler_enc(void *self ); 119 void glRenderbufferStorage_enc(void *self , GLenum target, GLenum internalformat, GLsizei width, GLsizei height); 120 void glSampleCoverage_enc(void *self , GLclampf value, GLboolean invert); 121 void glScissor_enc(void *self , GLint x, GLint y, GLsizei width, GLsizei height); 122 void glShaderBinary_enc(void *self , GLsizei n, const GLuint* shaders, GLenum binaryformat, const GLvoid* binary, GLsizei length); 123 void glShaderSource_enc(void *self , GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length); 124 void glStencilFunc_enc(void *self , GLenum func, GLint ref, GLuint mask); 125 void glStencilFuncSeparate_enc(void *self , GLenum face, GLenum func, GLint ref, GLuint mask); 126 void glStencilMask_enc(void *self , GLuint mask); 127 void glStencilMaskSeparate_enc(void *self , GLenum face, GLuint mask); 128 void glStencilOp_enc(void *self , GLenum fail, GLenum zfail, GLenum zpass); 129 void glStencilOpSeparate_enc(void *self , GLenum face, GLenum fail, GLenum zfail, GLenum zpass); 130 void glTexImage2D_enc(void *self , GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels); 131 void glTexParameterf_enc(void *self , GLenum target, GLenum pname, GLfloat param); 132 void glTexParameterfv_enc(void *self , GLenum target, GLenum pname, const GLfloat* params); 133 void glTexParameteri_enc(void *self , GLenum target, GLenum pname, GLint param); 134 void glTexParameteriv_enc(void *self , GLenum target, GLenum pname, const GLint* params); 135 void glTexSubImage2D_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels); 136 void glUniform1f_enc(void *self , GLint location, GLfloat x); 137 void glUniform1fv_enc(void *self , GLint location, GLsizei count, const GLfloat* v); 138 void glUniform1i_enc(void *self , GLint location, GLint x); 139 void glUniform1iv_enc(void *self , GLint location, GLsizei count, const GLint* v); 140 void glUniform2f_enc(void *self , GLint location, GLfloat x, GLfloat y); 141 void glUniform2fv_enc(void *self , GLint location, GLsizei count, const GLfloat* v); 142 void glUniform2i_enc(void *self , GLint location, GLint x, GLint y); 143 void glUniform2iv_enc(void *self , GLint location, GLsizei count, const GLint* v); 144 void glUniform3f_enc(void *self , GLint location, GLfloat x, GLfloat y, GLfloat z); 145 void glUniform3fv_enc(void *self , GLint location, GLsizei count, const GLfloat* v); 146 void glUniform3i_enc(void *self , GLint location, GLint x, GLint y, GLint z); 147 void glUniform3iv_enc(void *self , GLint location, GLsizei count, const GLint* v); 148 void glUniform4f_enc(void *self , GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 149 void glUniform4fv_enc(void *self , GLint location, GLsizei count, const GLfloat* v); 150 void glUniform4i_enc(void *self , GLint location, GLint x, GLint y, GLint z, GLint w); 151 void glUniform4iv_enc(void *self , GLint location, GLsizei count, const GLint* v); 152 void glUniformMatrix2fv_enc(void *self , GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); 153 void glUniformMatrix3fv_enc(void *self , GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); 154 void glUniformMatrix4fv_enc(void *self , GLint location, GLsizei count, GLboolean transpose, const GLfloat* value); 155 void glUseProgram_enc(void *self , GLuint program); 156 void glValidateProgram_enc(void *self , GLuint program); 157 void glVertexAttrib1f_enc(void *self , GLuint indx, GLfloat x); 158 void glVertexAttrib1fv_enc(void *self , GLuint indx, const GLfloat* values); 159 void glVertexAttrib2f_enc(void *self , GLuint indx, GLfloat x, GLfloat y); 160 void glVertexAttrib2fv_enc(void *self , GLuint indx, const GLfloat* values); 161 void glVertexAttrib3f_enc(void *self , GLuint indx, GLfloat x, GLfloat y, GLfloat z); 162 void glVertexAttrib3fv_enc(void *self , GLuint indx, const GLfloat* values); 163 void glVertexAttrib4f_enc(void *self , GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w); 164 void glVertexAttrib4fv_enc(void *self , GLuint indx, const GLfloat* values); 165 void glVertexAttribPointer_enc(void *self , GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr); 166 void glViewport_enc(void *self , GLint x, GLint y, GLsizei width, GLsizei height); 167 void glEGLImageTargetTexture2DOES_enc(void *self , GLenum target, GLeglImageOES image); 168 void glEGLImageTargetRenderbufferStorageOES_enc(void *self , GLenum target, GLeglImageOES image); 169 void glGetProgramBinaryOES_enc(void *self , GLuint program, GLsizei bufSize, GLsizei* length, GLenum* binaryFormat, GLvoid* binary); 170 void glProgramBinaryOES_enc(void *self , GLuint program, GLenum binaryFormat, const GLvoid* binary, GLint length); 171 void* glMapBufferOES_enc(void *self , GLenum target, GLenum access); 172 GLboolean glUnmapBufferOES_enc(void *self , GLenum target); 173 void glTexImage3DOES_enc(void *self , GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid* pixels); 174 void glTexSubImage3DOES_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid* pixels); 175 void glCopyTexSubImage3DOES_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height); 176 void glCompressedTexImage3DOES_enc(void *self , GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid* data); 177 void glCompressedTexSubImage3DOES_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid* data); 178 void glFramebufferTexture3DOES_enc(void *self , GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset); 179 void glBindVertexArrayOES_enc(void *self , GLuint array); 180 void glDeleteVertexArraysOES_enc(void *self , GLsizei n, const GLuint* arrays); 181 void glGenVertexArraysOES_enc(void *self , GLsizei n, GLuint* arrays); 182 GLboolean glIsVertexArrayOES_enc(void *self , GLuint array); 183 void glDiscardFramebufferEXT_enc(void *self , GLenum target, GLsizei numAttachments, const GLenum* attachments); 184 void glMultiDrawArraysEXT_enc(void *self , GLenum mode, const GLint* first, const GLsizei* count, GLsizei primcount); 185 void glMultiDrawElementsEXT_enc(void *self , GLenum mode, const GLsizei* count, GLenum type, const GLvoid* const* indices, GLsizei primcount); 186 void glGetPerfMonitorGroupsAMD_enc(void *self , GLint* numGroups, GLsizei groupsSize, GLuint* groups); 187 void glGetPerfMonitorCountersAMD_enc(void *self , GLuint group, GLint* numCounters, GLint* maxActiveCounters, GLsizei counterSize, GLuint* counters); 188 void glGetPerfMonitorGroupStringAMD_enc(void *self , GLuint group, GLsizei bufSize, GLsizei* length, GLchar* groupString); 189 void glGetPerfMonitorCounterStringAMD_enc(void *self , GLuint group, GLuint counter, GLsizei bufSize, GLsizei* length, GLchar* counterString); 190 void glGetPerfMonitorCounterInfoAMD_enc(void *self , GLuint group, GLuint counter, GLenum pname, GLvoid* data); 191 void glGenPerfMonitorsAMD_enc(void *self , GLsizei n, GLuint* monitors); 192 void glDeletePerfMonitorsAMD_enc(void *self , GLsizei n, GLuint* monitors); 193 void glSelectPerfMonitorCountersAMD_enc(void *self , GLuint monitor, GLboolean enable, GLuint group, GLint numCounters, GLuint* countersList); 194 void glBeginPerfMonitorAMD_enc(void *self , GLuint monitor); 195 void glEndPerfMonitorAMD_enc(void *self , GLuint monitor); 196 void glGetPerfMonitorCounterDataAMD_enc(void *self , GLuint monitor, GLenum pname, GLsizei dataSize, GLuint* data, GLint* bytesWritten); 197 void glRenderbufferStorageMultisampleIMG_enc(void *self , GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); 198 void glFramebufferTexture2DMultisampleIMG_enc(void *self , GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples); 199 void glDeleteFencesNV_enc(void *self , GLsizei n, const GLuint* fences); 200 void glGenFencesNV_enc(void *self , GLsizei n, GLuint* fences); 201 GLboolean glIsFenceNV_enc(void *self , GLuint fence); 202 GLboolean glTestFenceNV_enc(void *self , GLuint fence); 203 void glGetFenceivNV_enc(void *self , GLuint fence, GLenum pname, GLint* params); 204 void glFinishFenceNV_enc(void *self , GLuint fence); 205 void glSetFenceNV_enc(void *self , GLuint fence, GLenum condition); 206 void glCoverageMaskNV_enc(void *self , GLboolean mask); 207 void glCoverageOperationNV_enc(void *self , GLenum operation); 208 void glGetDriverControlsQCOM_enc(void *self , GLint* num, GLsizei size, GLuint* driverControls); 209 void glGetDriverControlStringQCOM_enc(void *self , GLuint driverControl, GLsizei bufSize, GLsizei* length, GLchar* driverControlString); 210 void glEnableDriverControlQCOM_enc(void *self , GLuint driverControl); 211 void glDisableDriverControlQCOM_enc(void *self , GLuint driverControl); 212 void glExtGetTexturesQCOM_enc(void *self , GLuint* textures, GLint maxTextures, GLint* numTextures); 213 void glExtGetBuffersQCOM_enc(void *self , GLuint* buffers, GLint maxBuffers, GLint* numBuffers); 214 void glExtGetRenderbuffersQCOM_enc(void *self , GLuint* renderbuffers, GLint maxRenderbuffers, GLint* numRenderbuffers); 215 void glExtGetFramebuffersQCOM_enc(void *self , GLuint* framebuffers, GLint maxFramebuffers, GLint* numFramebuffers); 216 void glExtGetTexLevelParameterivQCOM_enc(void *self , GLuint texture, GLenum face, GLint level, GLenum pname, GLint* params); 217 void glExtTexObjectStateOverrideiQCOM_enc(void *self , GLenum target, GLenum pname, GLint param); 218 void glExtGetTexSubImageQCOM_enc(void *self , GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, GLvoid* texels); 219 void glExtGetBufferPointervQCOM_enc(void *self , GLenum target, GLvoidptr* params); 220 void glExtGetShadersQCOM_enc(void *self , GLuint* shaders, GLint maxShaders, GLint* numShaders); 221 void glExtGetProgramsQCOM_enc(void *self , GLuint* programs, GLint maxPrograms, GLint* numPrograms); 222 GLboolean glExtIsProgramBinaryQCOM_enc(void *self , GLuint program); 223 void glExtGetProgramBinarySourceQCOM_enc(void *self , GLuint program, GLenum shadertype, GLchar* source, GLint* length); 224 void glStartTilingQCOM_enc(void *self , GLuint x, GLuint y, GLuint width, GLuint height, GLbitfield preserveMask); 225 void glEndTilingQCOM_enc(void *self , GLbitfield preserveMask); 226 void glVertexAttribPointerData_enc(void *self , GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, void* data, GLuint datalen); 227 void glVertexAttribPointerOffset_enc(void *self , GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint offset); 228 void glDrawElementsOffset_enc(void *self , GLenum mode, GLsizei count, GLenum type, GLuint offset); 229 void glDrawElementsData_enc(void *self , GLenum mode, GLsizei count, GLenum type, void* data, GLuint datalen); 230 void glGetCompressedTextureFormats_enc(void *self , int count, GLint* formats); 231 void glShaderString_enc(void *self , GLuint shader, const GLchar* string, GLsizei len); 232 int glFinishRoundTrip_enc(void *self ); 233 }; 234 #endif 235