// cat gl2.h  | grep '^GL_APICALL' | perl -pe 's/GL_APICALL\s+(.+?)\s*GL_APIENTRY\s+gl(\w+)\s+(.*);\s*$/GLFUNC($1, $2, $3)\n/'
GLFUNC(void, ActiveTexture, (GLenum texture))
GLFUNC(void, AttachShader, (GLuint program, GLuint shader))
GLFUNC(void, BindAttribLocation, (GLuint program, GLuint index, const GLchar *name))
GLFUNC(void, BindBuffer, (GLenum target, GLuint buffer))
GLFUNC(void, BindFramebuffer, (GLenum target, GLuint framebuffer))
GLFUNC(void, BindRenderbuffer, (GLenum target, GLuint renderbuffer))
GLFUNC(void, BindTexture, (GLenum target, GLuint texture))
GLFUNC(void, BlendColor, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
GLFUNC(void, BlendEquation, (GLenum mode))
GLFUNC(void, BlendEquationSeparate, (GLenum modeRGB, GLenum modeAlpha))
GLFUNC(void, BlendFunc, (GLenum sfactor, GLenum dfactor))
GLFUNC(void, BlendFuncSeparate, (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha))
GLFUNC(void, BufferData, (GLenum target, GLsizeiptr size, const void *data, GLenum usage))
GLFUNC(void, BufferSubData, (GLenum target, GLintptr offset, GLsizeiptr size, const void *data))
GLFUNC(GLenum, CheckFramebufferStatus, (GLenum target))
GLFUNC(void, Clear, (GLbitfield mask))
GLFUNC(void, ClearColor, (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
GLFUNC(void, ClearDepthf, (GLfloat d))
GLFUNC(void, ClearStencil, (GLint s))
GLFUNC(void, ColorMask, (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha))
GLFUNC(void, CompileShader, (GLuint shader))
GLFUNC(void, CompressedTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data))
GLFUNC(void, CompressedTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data))
GLFUNC(void, CopyTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border))
GLFUNC(void, CopyTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height))
GLFUNC(GLuint, CreateProgram, (void))
GLFUNC(GLuint, CreateShader, (GLenum type))
GLFUNC(void, CullFace, (GLenum mode))
GLFUNC(void, DeleteBuffers, (GLsizei n, const GLuint *buffers))
GLFUNC(void, DeleteFramebuffers, (GLsizei n, const GLuint *framebuffers))
GLFUNC(void, DeleteProgram, (GLuint program))
GLFUNC(void, DeleteRenderbuffers, (GLsizei n, const GLuint *renderbuffers))
GLFUNC(void, DeleteShader, (GLuint shader))
GLFUNC(void, DeleteTextures, (GLsizei n, const GLuint *textures))
GLFUNC(void, DepthFunc, (GLenum func))
GLFUNC(void, DepthMask, (GLboolean flag))
GLFUNC(void, DepthRangef, (GLfloat n, GLfloat f))
GLFUNC(void, DetachShader, (GLuint program, GLuint shader))
GLFUNC(void, Disable, (GLenum cap))
GLFUNC(void, DisableVertexAttribArray, (GLuint index))
GLFUNC(void, DrawArrays, (GLenum mode, GLint first, GLsizei count))
GLFUNC(void, DrawElements, (GLenum mode, GLsizei count, GLenum type, const void *indices))
GLFUNC(void, Enable, (GLenum cap))
GLFUNC(void, EnableVertexAttribArray, (GLuint index))
GLFUNC(void, Finish, (void))
GLFUNC(void, Flush, (void))
GLFUNC(void, FramebufferRenderbuffer, (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer))
GLFUNC(void, FramebufferTexture2D, (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level))
GLFUNC(void, FrontFace, (GLenum mode))
GLFUNC(void, GenBuffers, (GLsizei n, GLuint *buffers))
GLFUNC(void, GenerateMipmap, (GLenum target))
GLFUNC(void, GenFramebuffers, (GLsizei n, GLuint *framebuffers))
GLFUNC(void, GenRenderbuffers, (GLsizei n, GLuint *renderbuffers))
GLFUNC(void, GenTextures, (GLsizei n, GLuint *textures))
GLFUNC(void, GetActiveAttrib, (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name))
GLFUNC(void, GetActiveUniform, (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name))
GLFUNC(void, GetAttachedShaders, (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders))
GLFUNC(GLint, GetAttribLocation, (GLuint program, const GLchar *name))
GLFUNC(void, GetBooleanv, (GLenum pname, GLboolean *data))
GLFUNC(void, GetBufferParameteriv, (GLenum target, GLenum pname, GLint *params))
GLFUNC(GLenum, GetError, (void))
GLFUNC(void, GetFloatv, (GLenum pname, GLfloat *data))
GLFUNC(void, GetFramebufferAttachmentParameteriv, (GLenum target, GLenum attachment, GLenum pname, GLint *params))
GLFUNC(void, GetIntegerv, (GLenum pname, GLint *data))
GLFUNC(void, GetProgramiv, (GLuint program, GLenum pname, GLint *params))
GLFUNC(void, GetProgramInfoLog, (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog))
GLFUNC(void, GetRenderbufferParameteriv, (GLenum target, GLenum pname, GLint *params))
GLFUNC(void, GetShaderiv, (GLuint shader, GLenum pname, GLint *params))
GLFUNC(void, GetShaderInfoLog, (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog))
GLFUNC(void, GetShaderPrecisionFormat, (GLenum shadertype, GLenum precisiontype, GLint *range, GLint *precision))
GLFUNC(void, GetShaderSource, (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source))
GLFUNC(const GLubyte *, GetString, (GLenum name))
GLFUNC(void, GetTexParameterfv, (GLenum target, GLenum pname, GLfloat *params))
GLFUNC(void, GetTexParameteriv, (GLenum target, GLenum pname, GLint *params))
GLFUNC(void, GetUniformfv, (GLuint program, GLint location, GLfloat *params))
GLFUNC(void, GetUniformiv, (GLuint program, GLint location, GLint *params))
GLFUNC(GLint, GetUniformLocation, (GLuint program, const GLchar *name))
GLFUNC(void, GetVertexAttribfv, (GLuint index, GLenum pname, GLfloat *params))
GLFUNC(void, GetVertexAttribiv, (GLuint index, GLenum pname, GLint *params))
GLFUNC(void, GetVertexAttribPointerv, (GLuint index, GLenum pname, void **pointer))
GLFUNC(void, Hint, (GLenum target, GLenum mode))
GLFUNC(GLboolean, IsBuffer, (GLuint buffer))
GLFUNC(GLboolean, IsEnabled, (GLenum cap))
GLFUNC(GLboolean, IsFramebuffer, (GLuint framebuffer))
GLFUNC(GLboolean, IsProgram, (GLuint program))
GLFUNC(GLboolean, IsRenderbuffer, (GLuint renderbuffer))
GLFUNC(GLboolean, IsShader, (GLuint shader))
GLFUNC(GLboolean, IsTexture, (GLuint texture))
GLFUNC(void, LineWidth, (GLfloat width))
GLFUNC(void, LinkProgram, (GLuint program))
GLFUNC(void, PixelStorei, (GLenum pname, GLint param))
GLFUNC(void, PolygonOffset, (GLfloat factor, GLfloat units))
GLFUNC(void, ReadPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void *pixels))
GLFUNC(void, ReleaseShaderCompiler, (void))
GLFUNC(void, RenderbufferStorage, (GLenum target, GLenum internalformat, GLsizei width, GLsizei height))
GLFUNC(void, SampleCoverage, (GLfloat value, GLboolean invert))
GLFUNC(void, Scissor, (GLint x, GLint y, GLsizei width, GLsizei height))
GLFUNC(void, ShaderBinary, (GLsizei count, const GLuint *shaders, GLenum binaryformat, const void *binary, GLsizei length))
GLFUNC(void, ShaderSource, (GLuint shader, GLsizei count, const GLchar *const*string, const GLint *length))
GLFUNC(void, StencilFunc, (GLenum func, GLint ref, GLuint mask))
GLFUNC(void, StencilFuncSeparate, (GLenum face, GLenum func, GLint ref, GLuint mask))
GLFUNC(void, StencilMask, (GLuint mask))
GLFUNC(void, StencilMaskSeparate, (GLenum face, GLuint mask))
GLFUNC(void, StencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
GLFUNC(void, StencilOpSeparate, (GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass))
GLFUNC(void, TexImage2D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels))
GLFUNC(void, TexParameterf, (GLenum target, GLenum pname, GLfloat param))
GLFUNC(void, TexParameterfv, (GLenum target, GLenum pname, const GLfloat *params))
GLFUNC(void, TexParameteri, (GLenum target, GLenum pname, GLint param))
GLFUNC(void, TexParameteriv, (GLenum target, GLenum pname, const GLint *params))
GLFUNC(void, TexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *pixels))
GLFUNC(void, Uniform1f, (GLint location, GLfloat v0))
GLFUNC(void, Uniform1fv, (GLint location, GLsizei count, const GLfloat *value))
GLFUNC(void, Uniform1i, (GLint location, GLint v0))
GLFUNC(void, Uniform1iv, (GLint location, GLsizei count, const GLint *value))
GLFUNC(void, Uniform2f, (GLint location, GLfloat v0, GLfloat v1))
GLFUNC(void, Uniform2fv, (GLint location, GLsizei count, const GLfloat *value))
GLFUNC(void, Uniform2i, (GLint location, GLint v0, GLint v1))
GLFUNC(void, Uniform2iv, (GLint location, GLsizei count, const GLint *value))
GLFUNC(void, Uniform3f, (GLint location, GLfloat v0, GLfloat v1, GLfloat v2))
GLFUNC(void, Uniform3fv, (GLint location, GLsizei count, const GLfloat *value))
GLFUNC(void, Uniform3i, (GLint location, GLint v0, GLint v1, GLint v2))
GLFUNC(void, Uniform3iv, (GLint location, GLsizei count, const GLint *value))
GLFUNC(void, Uniform4f, (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3))
GLFUNC(void, Uniform4fv, (GLint location, GLsizei count, const GLfloat *value))
GLFUNC(void, Uniform4i, (GLint location, GLint v0, GLint v1, GLint v2, GLint v3))
GLFUNC(void, Uniform4iv, (GLint location, GLsizei count, const GLint *value))
GLFUNC(void, UniformMatrix2fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value))
GLFUNC(void, UniformMatrix3fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value))
GLFUNC(void, UniformMatrix4fv, (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value))
GLFUNC(void, UseProgram, (GLuint program))
GLFUNC(void, ValidateProgram, (GLuint program))
GLFUNC(void, VertexAttrib1f, (GLuint index, GLfloat x))
GLFUNC(void, VertexAttrib1fv, (GLuint index, const GLfloat *v))
GLFUNC(void, VertexAttrib2f, (GLuint index, GLfloat x, GLfloat y))
GLFUNC(void, VertexAttrib2fv, (GLuint index, const GLfloat *v))
GLFUNC(void, VertexAttrib3f, (GLuint index, GLfloat x, GLfloat y, GLfloat z))
GLFUNC(void, VertexAttrib3fv, (GLuint index, const GLfloat *v))
GLFUNC(void, VertexAttrib4f, (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w))
GLFUNC(void, VertexAttrib4fv, (GLuint index, const GLfloat *v))
GLFUNC(void, VertexAttribPointer, (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer))
GLFUNC(void, Viewport, (GLint x, GLint y, GLsizei width, GLsizei height))
