C++程序  |  231行  |  11.35 KB

// Generated Code - DO NOT EDIT !!
// generated by 'emugen'
#ifndef __gl2_client_context_t_h
#define __gl2_client_context_t_h

#include "gl2_client_proc.h"

#include "gl2_types.h"


struct gl2_client_context_t {

	glActiveTexture_client_proc_t glActiveTexture;
	glAttachShader_client_proc_t glAttachShader;
	glBindAttribLocation_client_proc_t glBindAttribLocation;
	glBindBuffer_client_proc_t glBindBuffer;
	glBindFramebuffer_client_proc_t glBindFramebuffer;
	glBindRenderbuffer_client_proc_t glBindRenderbuffer;
	glBindTexture_client_proc_t glBindTexture;
	glBlendColor_client_proc_t glBlendColor;
	glBlendEquation_client_proc_t glBlendEquation;
	glBlendEquationSeparate_client_proc_t glBlendEquationSeparate;
	glBlendFunc_client_proc_t glBlendFunc;
	glBlendFuncSeparate_client_proc_t glBlendFuncSeparate;
	glBufferData_client_proc_t glBufferData;
	glBufferSubData_client_proc_t glBufferSubData;
	glCheckFramebufferStatus_client_proc_t glCheckFramebufferStatus;
	glClear_client_proc_t glClear;
	glClearColor_client_proc_t glClearColor;
	glClearDepthf_client_proc_t glClearDepthf;
	glClearStencil_client_proc_t glClearStencil;
	glColorMask_client_proc_t glColorMask;
	glCompileShader_client_proc_t glCompileShader;
	glCompressedTexImage2D_client_proc_t glCompressedTexImage2D;
	glCompressedTexSubImage2D_client_proc_t glCompressedTexSubImage2D;
	glCopyTexImage2D_client_proc_t glCopyTexImage2D;
	glCopyTexSubImage2D_client_proc_t glCopyTexSubImage2D;
	glCreateProgram_client_proc_t glCreateProgram;
	glCreateShader_client_proc_t glCreateShader;
	glCullFace_client_proc_t glCullFace;
	glDeleteBuffers_client_proc_t glDeleteBuffers;
	glDeleteFramebuffers_client_proc_t glDeleteFramebuffers;
	glDeleteProgram_client_proc_t glDeleteProgram;
	glDeleteRenderbuffers_client_proc_t glDeleteRenderbuffers;
	glDeleteShader_client_proc_t glDeleteShader;
	glDeleteTextures_client_proc_t glDeleteTextures;
	glDepthFunc_client_proc_t glDepthFunc;
	glDepthMask_client_proc_t glDepthMask;
	glDepthRangef_client_proc_t glDepthRangef;
	glDetachShader_client_proc_t glDetachShader;
	glDisable_client_proc_t glDisable;
	glDisableVertexAttribArray_client_proc_t glDisableVertexAttribArray;
	glDrawArrays_client_proc_t glDrawArrays;
	glDrawElements_client_proc_t glDrawElements;
	glEnable_client_proc_t glEnable;
	glEnableVertexAttribArray_client_proc_t glEnableVertexAttribArray;
	glFinish_client_proc_t glFinish;
	glFlush_client_proc_t glFlush;
	glFramebufferRenderbuffer_client_proc_t glFramebufferRenderbuffer;
	glFramebufferTexture2D_client_proc_t glFramebufferTexture2D;
	glFrontFace_client_proc_t glFrontFace;
	glGenBuffers_client_proc_t glGenBuffers;
	glGenerateMipmap_client_proc_t glGenerateMipmap;
	glGenFramebuffers_client_proc_t glGenFramebuffers;
	glGenRenderbuffers_client_proc_t glGenRenderbuffers;
	glGenTextures_client_proc_t glGenTextures;
	glGetActiveAttrib_client_proc_t glGetActiveAttrib;
	glGetActiveUniform_client_proc_t glGetActiveUniform;
	glGetAttachedShaders_client_proc_t glGetAttachedShaders;
	glGetAttribLocation_client_proc_t glGetAttribLocation;
	glGetBooleanv_client_proc_t glGetBooleanv;
	glGetBufferParameteriv_client_proc_t glGetBufferParameteriv;
	glGetError_client_proc_t glGetError;
	glGetFloatv_client_proc_t glGetFloatv;
	glGetFramebufferAttachmentParameteriv_client_proc_t glGetFramebufferAttachmentParameteriv;
	glGetIntegerv_client_proc_t glGetIntegerv;
	glGetProgramiv_client_proc_t glGetProgramiv;
	glGetProgramInfoLog_client_proc_t glGetProgramInfoLog;
	glGetRenderbufferParameteriv_client_proc_t glGetRenderbufferParameteriv;
	glGetShaderiv_client_proc_t glGetShaderiv;
	glGetShaderInfoLog_client_proc_t glGetShaderInfoLog;
	glGetShaderPrecisionFormat_client_proc_t glGetShaderPrecisionFormat;
	glGetShaderSource_client_proc_t glGetShaderSource;
	glGetString_client_proc_t glGetString;
	glGetTexParameterfv_client_proc_t glGetTexParameterfv;
	glGetTexParameteriv_client_proc_t glGetTexParameteriv;
	glGetUniformfv_client_proc_t glGetUniformfv;
	glGetUniformiv_client_proc_t glGetUniformiv;
	glGetUniformLocation_client_proc_t glGetUniformLocation;
	glGetVertexAttribfv_client_proc_t glGetVertexAttribfv;
	glGetVertexAttribiv_client_proc_t glGetVertexAttribiv;
	glGetVertexAttribPointerv_client_proc_t glGetVertexAttribPointerv;
	glHint_client_proc_t glHint;
	glIsBuffer_client_proc_t glIsBuffer;
	glIsEnabled_client_proc_t glIsEnabled;
	glIsFramebuffer_client_proc_t glIsFramebuffer;
	glIsProgram_client_proc_t glIsProgram;
	glIsRenderbuffer_client_proc_t glIsRenderbuffer;
	glIsShader_client_proc_t glIsShader;
	glIsTexture_client_proc_t glIsTexture;
	glLineWidth_client_proc_t glLineWidth;
	glLinkProgram_client_proc_t glLinkProgram;
	glPixelStorei_client_proc_t glPixelStorei;
	glPolygonOffset_client_proc_t glPolygonOffset;
	glReadPixels_client_proc_t glReadPixels;
	glReleaseShaderCompiler_client_proc_t glReleaseShaderCompiler;
	glRenderbufferStorage_client_proc_t glRenderbufferStorage;
	glSampleCoverage_client_proc_t glSampleCoverage;
	glScissor_client_proc_t glScissor;
	glShaderBinary_client_proc_t glShaderBinary;
	glShaderSource_client_proc_t glShaderSource;
	glStencilFunc_client_proc_t glStencilFunc;
	glStencilFuncSeparate_client_proc_t glStencilFuncSeparate;
	glStencilMask_client_proc_t glStencilMask;
	glStencilMaskSeparate_client_proc_t glStencilMaskSeparate;
	glStencilOp_client_proc_t glStencilOp;
	glStencilOpSeparate_client_proc_t glStencilOpSeparate;
	glTexImage2D_client_proc_t glTexImage2D;
	glTexParameterf_client_proc_t glTexParameterf;
	glTexParameterfv_client_proc_t glTexParameterfv;
	glTexParameteri_client_proc_t glTexParameteri;
	glTexParameteriv_client_proc_t glTexParameteriv;
	glTexSubImage2D_client_proc_t glTexSubImage2D;
	glUniform1f_client_proc_t glUniform1f;
	glUniform1fv_client_proc_t glUniform1fv;
	glUniform1i_client_proc_t glUniform1i;
	glUniform1iv_client_proc_t glUniform1iv;
	glUniform2f_client_proc_t glUniform2f;
	glUniform2fv_client_proc_t glUniform2fv;
	glUniform2i_client_proc_t glUniform2i;
	glUniform2iv_client_proc_t glUniform2iv;
	glUniform3f_client_proc_t glUniform3f;
	glUniform3fv_client_proc_t glUniform3fv;
	glUniform3i_client_proc_t glUniform3i;
	glUniform3iv_client_proc_t glUniform3iv;
	glUniform4f_client_proc_t glUniform4f;
	glUniform4fv_client_proc_t glUniform4fv;
	glUniform4i_client_proc_t glUniform4i;
	glUniform4iv_client_proc_t glUniform4iv;
	glUniformMatrix2fv_client_proc_t glUniformMatrix2fv;
	glUniformMatrix3fv_client_proc_t glUniformMatrix3fv;
	glUniformMatrix4fv_client_proc_t glUniformMatrix4fv;
	glUseProgram_client_proc_t glUseProgram;
	glValidateProgram_client_proc_t glValidateProgram;
	glVertexAttrib1f_client_proc_t glVertexAttrib1f;
	glVertexAttrib1fv_client_proc_t glVertexAttrib1fv;
	glVertexAttrib2f_client_proc_t glVertexAttrib2f;
	glVertexAttrib2fv_client_proc_t glVertexAttrib2fv;
	glVertexAttrib3f_client_proc_t glVertexAttrib3f;
	glVertexAttrib3fv_client_proc_t glVertexAttrib3fv;
	glVertexAttrib4f_client_proc_t glVertexAttrib4f;
	glVertexAttrib4fv_client_proc_t glVertexAttrib4fv;
	glVertexAttribPointer_client_proc_t glVertexAttribPointer;
	glViewport_client_proc_t glViewport;
	glEGLImageTargetTexture2DOES_client_proc_t glEGLImageTargetTexture2DOES;
	glEGLImageTargetRenderbufferStorageOES_client_proc_t glEGLImageTargetRenderbufferStorageOES;
	glGetProgramBinaryOES_client_proc_t glGetProgramBinaryOES;
	glProgramBinaryOES_client_proc_t glProgramBinaryOES;
	glMapBufferOES_client_proc_t glMapBufferOES;
	glUnmapBufferOES_client_proc_t glUnmapBufferOES;
	glTexImage3DOES_client_proc_t glTexImage3DOES;
	glTexSubImage3DOES_client_proc_t glTexSubImage3DOES;
	glCopyTexSubImage3DOES_client_proc_t glCopyTexSubImage3DOES;
	glCompressedTexImage3DOES_client_proc_t glCompressedTexImage3DOES;
	glCompressedTexSubImage3DOES_client_proc_t glCompressedTexSubImage3DOES;
	glFramebufferTexture3DOES_client_proc_t glFramebufferTexture3DOES;
	glBindVertexArrayOES_client_proc_t glBindVertexArrayOES;
	glDeleteVertexArraysOES_client_proc_t glDeleteVertexArraysOES;
	glGenVertexArraysOES_client_proc_t glGenVertexArraysOES;
	glIsVertexArrayOES_client_proc_t glIsVertexArrayOES;
	glDiscardFramebufferEXT_client_proc_t glDiscardFramebufferEXT;
	glMultiDrawArraysEXT_client_proc_t glMultiDrawArraysEXT;
	glMultiDrawElementsEXT_client_proc_t glMultiDrawElementsEXT;
	glGetPerfMonitorGroupsAMD_client_proc_t glGetPerfMonitorGroupsAMD;
	glGetPerfMonitorCountersAMD_client_proc_t glGetPerfMonitorCountersAMD;
	glGetPerfMonitorGroupStringAMD_client_proc_t glGetPerfMonitorGroupStringAMD;
	glGetPerfMonitorCounterStringAMD_client_proc_t glGetPerfMonitorCounterStringAMD;
	glGetPerfMonitorCounterInfoAMD_client_proc_t glGetPerfMonitorCounterInfoAMD;
	glGenPerfMonitorsAMD_client_proc_t glGenPerfMonitorsAMD;
	glDeletePerfMonitorsAMD_client_proc_t glDeletePerfMonitorsAMD;
	glSelectPerfMonitorCountersAMD_client_proc_t glSelectPerfMonitorCountersAMD;
	glBeginPerfMonitorAMD_client_proc_t glBeginPerfMonitorAMD;
	glEndPerfMonitorAMD_client_proc_t glEndPerfMonitorAMD;
	glGetPerfMonitorCounterDataAMD_client_proc_t glGetPerfMonitorCounterDataAMD;
	glRenderbufferStorageMultisampleIMG_client_proc_t glRenderbufferStorageMultisampleIMG;
	glFramebufferTexture2DMultisampleIMG_client_proc_t glFramebufferTexture2DMultisampleIMG;
	glDeleteFencesNV_client_proc_t glDeleteFencesNV;
	glGenFencesNV_client_proc_t glGenFencesNV;
	glIsFenceNV_client_proc_t glIsFenceNV;
	glTestFenceNV_client_proc_t glTestFenceNV;
	glGetFenceivNV_client_proc_t glGetFenceivNV;
	glFinishFenceNV_client_proc_t glFinishFenceNV;
	glSetFenceNV_client_proc_t glSetFenceNV;
	glCoverageMaskNV_client_proc_t glCoverageMaskNV;
	glCoverageOperationNV_client_proc_t glCoverageOperationNV;
	glGetDriverControlsQCOM_client_proc_t glGetDriverControlsQCOM;
	glGetDriverControlStringQCOM_client_proc_t glGetDriverControlStringQCOM;
	glEnableDriverControlQCOM_client_proc_t glEnableDriverControlQCOM;
	glDisableDriverControlQCOM_client_proc_t glDisableDriverControlQCOM;
	glExtGetTexturesQCOM_client_proc_t glExtGetTexturesQCOM;
	glExtGetBuffersQCOM_client_proc_t glExtGetBuffersQCOM;
	glExtGetRenderbuffersQCOM_client_proc_t glExtGetRenderbuffersQCOM;
	glExtGetFramebuffersQCOM_client_proc_t glExtGetFramebuffersQCOM;
	glExtGetTexLevelParameterivQCOM_client_proc_t glExtGetTexLevelParameterivQCOM;
	glExtTexObjectStateOverrideiQCOM_client_proc_t glExtTexObjectStateOverrideiQCOM;
	glExtGetTexSubImageQCOM_client_proc_t glExtGetTexSubImageQCOM;
	glExtGetBufferPointervQCOM_client_proc_t glExtGetBufferPointervQCOM;
	glExtGetShadersQCOM_client_proc_t glExtGetShadersQCOM;
	glExtGetProgramsQCOM_client_proc_t glExtGetProgramsQCOM;
	glExtIsProgramBinaryQCOM_client_proc_t glExtIsProgramBinaryQCOM;
	glExtGetProgramBinarySourceQCOM_client_proc_t glExtGetProgramBinarySourceQCOM;
	glStartTilingQCOM_client_proc_t glStartTilingQCOM;
	glEndTilingQCOM_client_proc_t glEndTilingQCOM;
	glVertexAttribPointerData_client_proc_t glVertexAttribPointerData;
	glVertexAttribPointerOffset_client_proc_t glVertexAttribPointerOffset;
	glDrawElementsOffset_client_proc_t glDrawElementsOffset;
	glDrawElementsData_client_proc_t glDrawElementsData;
	glGetCompressedTextureFormats_client_proc_t glGetCompressedTextureFormats;
	glShaderString_client_proc_t glShaderString;
	glFinishRoundTrip_client_proc_t glFinishRoundTrip;
	virtual ~gl2_client_context_t() {}

	typedef gl2_client_context_t *CONTEXT_ACCESSOR_TYPE(void);
	static void setContextAccessor(CONTEXT_ACCESSOR_TYPE *f);
	int initDispatchByName( void *(*getProc)(const char *name, void *userData), void *userData);
	virtual void setError(unsigned int  error){ (void)error; };
	virtual unsigned int getError(){ return 0; };
};

#endif