blob: e537ee518751399884945240db45c94fa15a7654 [file] [log] [blame]
/* WARNING: This is auto-generated file. Do not modify, since changes will
* be lost! Modify the generating script instead.
*
* Generated from Khronos GL API description (gl.xml) revision 9d534f9312e56c72df763207e449c6719576fd54.
*/
void glwActiveShaderProgram (GLuint pipeline, GLuint program)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->activeShaderProgram(pipeline, program);
}
void glwActiveTexture (GLenum texture)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->activeTexture(texture);
}
void glwAttachShader (GLuint program, GLuint shader)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->attachShader(program, shader);
}
void glwBeginConditionalRender (GLuint id, GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->beginConditionalRender(id, mode);
}
void glwBeginQuery (GLenum target, GLuint id)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->beginQuery(target, id);
}
void glwBeginQueryIndexed (GLenum target, GLuint index, GLuint id)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->beginQueryIndexed(target, index, id);
}
void glwBeginTransformFeedback (GLenum primitiveMode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->beginTransformFeedback(primitiveMode);
}
void glwBindAttribLocation (GLuint program, GLuint index, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindAttribLocation(program, index, name);
}
void glwBindBuffer (GLenum target, GLuint buffer)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindBuffer(target, buffer);
}
void glwBindBufferBase (GLenum target, GLuint index, GLuint buffer)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindBufferBase(target, index, buffer);
}
void glwBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindBufferRange(target, index, buffer, offset, size);
}
void glwBindBuffersBase (GLenum target, GLuint first, GLsizei count, const GLuint *buffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindBuffersBase(target, first, count, buffers);
}
void glwBindBuffersRange (GLenum target, GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizeiptr *sizes)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindBuffersRange(target, first, count, buffers, offsets, sizes);
}
void glwBindFragDataLocation (GLuint program, GLuint color, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindFragDataLocation(program, color, name);
}
void glwBindFragDataLocationIndexed (GLuint program, GLuint colorNumber, GLuint index, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindFragDataLocationIndexed(program, colorNumber, index, name);
}
void glwBindFramebuffer (GLenum target, GLuint framebuffer)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindFramebuffer(target, framebuffer);
}
void glwBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindImageTexture(unit, texture, level, layered, layer, access, format);
}
void glwBindImageTextures (GLuint first, GLsizei count, const GLuint *textures)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindImageTextures(first, count, textures);
}
void glwBindMultiTextureEXT (GLenum texunit, GLenum target, GLuint texture)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindMultiTextureEXT(texunit, target, texture);
}
void glwBindProgramPipeline (GLuint pipeline)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindProgramPipeline(pipeline);
}
void glwBindRenderbuffer (GLenum target, GLuint renderbuffer)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindRenderbuffer(target, renderbuffer);
}
void glwBindSampler (GLuint unit, GLuint sampler)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindSampler(unit, sampler);
}
void glwBindSamplers (GLuint first, GLsizei count, const GLuint *samplers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindSamplers(first, count, samplers);
}
void glwBindTexture (GLenum target, GLuint texture)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindTexture(target, texture);
}
void glwBindTextureUnit (GLuint unit, GLuint texture)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindTextureUnit(unit, texture);
}
void glwBindTextures (GLuint first, GLsizei count, const GLuint *textures)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindTextures(first, count, textures);
}
void glwBindTransformFeedback (GLenum target, GLuint id)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindTransformFeedback(target, id);
}
void glwBindVertexArray (GLuint array)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindVertexArray(array);
}
void glwBindVertexBuffer (GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindVertexBuffer(bindingindex, buffer, offset, stride);
}
void glwBindVertexBuffers (GLuint first, GLsizei count, const GLuint *buffers, const GLintptr *offsets, const GLsizei *strides)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bindVertexBuffers(first, count, buffers, offsets, strides);
}
void glwBlendBarrier (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendBarrier();
}
void glwBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendColor(red, green, blue, alpha);
}
void glwBlendEquation (GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendEquation(mode);
}
void glwBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendEquationSeparate(modeRGB, modeAlpha);
}
void glwBlendEquationSeparatei (GLuint buf, GLenum modeRGB, GLenum modeAlpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendEquationSeparatei(buf, modeRGB, modeAlpha);
}
void glwBlendEquationi (GLuint buf, GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendEquationi(buf, mode);
}
void glwBlendFunc (GLenum sfactor, GLenum dfactor)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendFunc(sfactor, dfactor);
}
void glwBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
}
void glwBlendFuncSeparatei (GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
}
void glwBlendFunci (GLuint buf, GLenum src, GLenum dst)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blendFunci(buf, src, dst);
}
void glwBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
}
void glwBlitNamedFramebuffer (GLuint readFramebuffer, GLuint drawFramebuffer, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->blitNamedFramebuffer(readFramebuffer, drawFramebuffer, srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
}
void glwBufferData (GLenum target, GLsizeiptr size, const void *data, GLenum usage)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bufferData(target, size, data, usage);
}
void glwBufferPageCommitmentARB (GLenum target, GLintptr offset, GLsizeiptr size, GLboolean commit)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bufferPageCommitmentARB(target, offset, size, commit);
}
void glwBufferStorage (GLenum target, GLsizeiptr size, const void *data, GLbitfield flags)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bufferStorage(target, size, data, flags);
}
void glwBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->bufferSubData(target, offset, size, data);
}
GLenum glwCheckFramebufferStatus (GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLenum)0;
return gl->checkFramebufferStatus(target);
}
GLenum glwCheckNamedFramebufferStatus (GLuint framebuffer, GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLenum)0;
return gl->checkNamedFramebufferStatus(framebuffer, target);
}
GLenum glwCheckNamedFramebufferStatusEXT (GLuint framebuffer, GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLenum)0;
return gl->checkNamedFramebufferStatusEXT(framebuffer, target);
}
void glwClampColor (GLenum target, GLenum clamp)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clampColor(target, clamp);
}
void glwClear (GLbitfield mask)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clear(mask);
}
void glwClearBufferData (GLenum target, GLenum internalformat, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearBufferData(target, internalformat, format, type, data);
}
void glwClearBufferSubData (GLenum target, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearBufferSubData(target, internalformat, offset, size, format, type, data);
}
void glwClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearBufferfi(buffer, drawbuffer, depth, stencil);
}
void glwClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearBufferfv(buffer, drawbuffer, value);
}
void glwClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearBufferiv(buffer, drawbuffer, value);
}
void glwClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearBufferuiv(buffer, drawbuffer, value);
}
void glwClearColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearColor(red, green, blue, alpha);
}
void glwClearDepth (GLdouble depth)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearDepth(depth);
}
void glwClearDepthf (GLfloat d)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearDepthf(d);
}
void glwClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedBufferData(buffer, internalformat, format, type, data);
}
void glwClearNamedBufferDataEXT (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedBufferDataEXT(buffer, internalformat, format, type, data);
}
void glwClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedBufferSubData(buffer, internalformat, offset, size, format, type, data);
}
void glwClearNamedBufferSubDataEXT (GLuint buffer, GLenum internalformat, GLsizeiptr offset, GLsizeiptr size, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedBufferSubDataEXT(buffer, internalformat, offset, size, format, type, data);
}
void glwClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedFramebufferfi(framebuffer, buffer, drawbuffer, depth, stencil);
}
void glwClearNamedFramebufferfv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLfloat *value)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedFramebufferfv(framebuffer, buffer, drawbuffer, value);
}
void glwClearNamedFramebufferiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLint *value)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedFramebufferiv(framebuffer, buffer, drawbuffer, value);
}
void glwClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint *value)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearNamedFramebufferuiv(framebuffer, buffer, drawbuffer, value);
}
void glwClearStencil (GLint s)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearStencil(s);
}
void glwClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearTexImage(texture, level, format, type, data);
}
void glwClearTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clearTexSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, data);
}
void glwClientAttribDefaultEXT (GLbitfield mask)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clientAttribDefaultEXT(mask);
}
GLenum glwClientWaitSync (GLsync sync, GLbitfield flags, GLuint64 timeout)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLenum)0;
return gl->clientWaitSync(sync, flags, timeout);
}
void glwClipControl (GLenum origin, GLenum depth)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->clipControl(origin, depth);
}
void glwColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->colorMask(red, green, blue, alpha);
}
void glwColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->colorMaski(index, r, g, b, a);
}
void glwCompileShader (GLuint shader)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compileShader(shader);
}
void glwCompressedMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedMultiTexImage1DEXT(texunit, target, level, internalformat, width, border, imageSize, bits);
}
void glwCompressedMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedMultiTexImage2DEXT(texunit, target, level, internalformat, width, height, border, imageSize, bits);
}
void glwCompressedMultiTexImage3DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedMultiTexImage3DEXT(texunit, target, level, internalformat, width, height, depth, border, imageSize, bits);
}
void glwCompressedMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedMultiTexSubImage1DEXT(texunit, target, level, xoffset, width, format, imageSize, bits);
}
void glwCompressedMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedMultiTexSubImage2DEXT(texunit, target, level, xoffset, yoffset, width, height, format, imageSize, bits);
}
void glwCompressedMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedMultiTexSubImage3DEXT(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits);
}
void glwCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexImage1D(target, level, internalformat, width, border, imageSize, data);
}
void glwCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
}
void glwCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data);
}
void glwCompressedTexImage3DOES (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexImage3DOES(target, level, internalformat, width, height, depth, border, imageSize, data);
}
void glwCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
}
void glwCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
}
void glwCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
}
void glwCompressedTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
}
void glwCompressedTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureImage1DEXT(texture, target, level, internalformat, width, border, imageSize, bits);
}
void glwCompressedTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureImage2DEXT(texture, target, level, internalformat, width, height, border, imageSize, bits);
}
void glwCompressedTextureImage3DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureImage3DEXT(texture, target, level, internalformat, width, height, depth, border, imageSize, bits);
}
void glwCompressedTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureSubImage1D(texture, level, xoffset, width, format, imageSize, data);
}
void glwCompressedTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureSubImage1DEXT(texture, target, level, xoffset, width, format, imageSize, bits);
}
void glwCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, imageSize, data);
}
void glwCompressedTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureSubImage2DEXT(texture, target, level, xoffset, yoffset, width, height, format, imageSize, bits);
}
void glwCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
}
void glwCompressedTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void *bits)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->compressedTextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, bits);
}
void glwCopyBufferSubData (GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
}
void glwCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyImageSubData(srcName, srcTarget, srcLevel, srcX, srcY, srcZ, dstName, dstTarget, dstLevel, dstX, dstY, dstZ, srcWidth, srcHeight, srcDepth);
}
void glwCopyMultiTexImage1DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyMultiTexImage1DEXT(texunit, target, level, internalformat, x, y, width, border);
}
void glwCopyMultiTexImage2DEXT (GLenum texunit, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyMultiTexImage2DEXT(texunit, target, level, internalformat, x, y, width, height, border);
}
void glwCopyMultiTexSubImage1DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyMultiTexSubImage1DEXT(texunit, target, level, xoffset, x, y, width);
}
void glwCopyMultiTexSubImage2DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyMultiTexSubImage2DEXT(texunit, target, level, xoffset, yoffset, x, y, width, height);
}
void glwCopyMultiTexSubImage3DEXT (GLenum texunit, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyMultiTexSubImage3DEXT(texunit, target, level, xoffset, yoffset, zoffset, x, y, width, height);
}
void glwCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyNamedBufferSubData(readBuffer, writeBuffer, readOffset, writeOffset, size);
}
void glwCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTexImage1D(target, level, internalformat, x, y, width, border);
}
void glwCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTexImage2D(target, level, internalformat, x, y, width, height, border);
}
void glwCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTexSubImage1D(target, level, xoffset, x, y, width);
}
void glwCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
}
void glwCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
}
void glwCopyTexSubImage3DOES (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTexSubImage3DOES(target, level, xoffset, yoffset, zoffset, x, y, width, height);
}
void glwCopyTextureImage1DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureImage1DEXT(texture, target, level, internalformat, x, y, width, border);
}
void glwCopyTextureImage2DEXT (GLuint texture, GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureImage2DEXT(texture, target, level, internalformat, x, y, width, height, border);
}
void glwCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureSubImage1D(texture, level, xoffset, x, y, width);
}
void glwCopyTextureSubImage1DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureSubImage1DEXT(texture, target, level, xoffset, x, y, width);
}
void glwCopyTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureSubImage2D(texture, level, xoffset, yoffset, x, y, width, height);
}
void glwCopyTextureSubImage2DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureSubImage2DEXT(texture, target, level, xoffset, yoffset, x, y, width, height);
}
void glwCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, x, y, width, height);
}
void glwCopyTextureSubImage3DEXT (GLuint texture, GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->copyTextureSubImage3DEXT(texture, target, level, xoffset, yoffset, zoffset, x, y, width, height);
}
void glwCreateBuffers (GLsizei n, GLuint *buffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createBuffers(n, buffers);
}
void glwCreateFramebuffers (GLsizei n, GLuint *framebuffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createFramebuffers(n, framebuffers);
}
GLuint glwCreateProgram (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLuint)0;
return gl->createProgram();
}
void glwCreateProgramPipelines (GLsizei n, GLuint *pipelines)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createProgramPipelines(n, pipelines);
}
void glwCreateQueries (GLenum target, GLsizei n, GLuint *ids)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createQueries(target, n, ids);
}
void glwCreateRenderbuffers (GLsizei n, GLuint *renderbuffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createRenderbuffers(n, renderbuffers);
}
void glwCreateSamplers (GLsizei n, GLuint *samplers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createSamplers(n, samplers);
}
GLuint glwCreateShader (GLenum type)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLuint)0;
return gl->createShader(type);
}
GLuint glwCreateShaderProgramv (GLenum type, GLsizei count, const GLchar *const*strings)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLuint)0;
return gl->createShaderProgramv(type, count, strings);
}
void glwCreateTextures (GLenum target, GLsizei n, GLuint *textures)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createTextures(target, n, textures);
}
void glwCreateTransformFeedbacks (GLsizei n, GLuint *ids)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createTransformFeedbacks(n, ids);
}
void glwCreateVertexArrays (GLsizei n, GLuint *arrays)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->createVertexArrays(n, arrays);
}
void glwCullFace (GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->cullFace(mode);
}
void glwDebugMessageCallback (GLDEBUGPROC callback, const void *userParam)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->debugMessageCallback(callback, userParam);
}
void glwDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->debugMessageControl(source, type, severity, count, ids, enabled);
}
void glwDebugMessageInsert (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *buf)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->debugMessageInsert(source, type, id, severity, length, buf);
}
void glwDeleteBuffers (GLsizei n, const GLuint *buffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteBuffers(n, buffers);
}
void glwDeleteFramebuffers (GLsizei n, const GLuint *framebuffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteFramebuffers(n, framebuffers);
}
void glwDeleteProgram (GLuint program)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteProgram(program);
}
void glwDeleteProgramPipelines (GLsizei n, const GLuint *pipelines)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteProgramPipelines(n, pipelines);
}
void glwDeleteQueries (GLsizei n, const GLuint *ids)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteQueries(n, ids);
}
void glwDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteRenderbuffers(n, renderbuffers);
}
void glwDeleteSamplers (GLsizei count, const GLuint *samplers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteSamplers(count, samplers);
}
void glwDeleteShader (GLuint shader)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteShader(shader);
}
void glwDeleteSync (GLsync sync)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteSync(sync);
}
void glwDeleteTextures (GLsizei n, const GLuint *textures)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteTextures(n, textures);
}
void glwDeleteTransformFeedbacks (GLsizei n, const GLuint *ids)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteTransformFeedbacks(n, ids);
}
void glwDeleteVertexArrays (GLsizei n, const GLuint *arrays)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->deleteVertexArrays(n, arrays);
}
void glwDepthBoundsEXT (GLclampd zmin, GLclampd zmax)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthBoundsEXT(zmin, zmax);
}
void glwDepthFunc (GLenum func)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthFunc(func);
}
void glwDepthMask (GLboolean flag)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthMask(flag);
}
void glwDepthRange (GLdouble n, GLdouble f)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthRange(n, f);
}
void glwDepthRangeArrayfvOES (GLuint first, GLsizei count, const GLfloat *v)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthRangeArrayfvOES(first, count, v);
}
void glwDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble *v)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthRangeArrayv(first, count, v);
}
void glwDepthRangeIndexed (GLuint index, GLdouble n, GLdouble f)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthRangeIndexed(index, n, f);
}
void glwDepthRangeIndexedfOES (GLuint index, GLfloat n, GLfloat f)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthRangeIndexedfOES(index, n, f);
}
void glwDepthRangef (GLfloat n, GLfloat f)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->depthRangef(n, f);
}
void glwDetachShader (GLuint program, GLuint shader)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->detachShader(program, shader);
}
void glwDisable (GLenum cap)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disable(cap);
}
void glwDisableClientStateIndexedEXT (GLenum array, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disableClientStateIndexedEXT(array, index);
}
void glwDisableClientStateiEXT (GLenum array, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disableClientStateiEXT(array, index);
}
void glwDisableVertexArrayAttrib (GLuint vaobj, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disableVertexArrayAttrib(vaobj, index);
}
void glwDisableVertexArrayAttribEXT (GLuint vaobj, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disableVertexArrayAttribEXT(vaobj, index);
}
void glwDisableVertexArrayEXT (GLuint vaobj, GLenum array)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disableVertexArrayEXT(vaobj, array);
}
void glwDisableVertexAttribArray (GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disableVertexAttribArray(index);
}
void glwDisablei (GLenum target, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->disablei(target, index);
}
void glwDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->dispatchCompute(num_groups_x, num_groups_y, num_groups_z);
}
void glwDispatchComputeIndirect (GLintptr indirect)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->dispatchComputeIndirect(indirect);
}
void glwDrawArrays (GLenum mode, GLint first, GLsizei count)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawArrays(mode, first, count);
}
void glwDrawArraysIndirect (GLenum mode, const void *indirect)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawArraysIndirect(mode, indirect);
}
void glwDrawArraysInstanced (GLenum mode, GLint first, GLsizei count, GLsizei instancecount)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawArraysInstanced(mode, first, count, instancecount);
}
void glwDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawArraysInstancedBaseInstance(mode, first, count, instancecount, baseinstance);
}
void glwDrawBuffer (GLenum buf)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawBuffer(buf);
}
void glwDrawBuffers (GLsizei n, const GLenum *bufs)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawBuffers(n, bufs);
}
void glwDrawElements (GLenum mode, GLsizei count, GLenum type, const void *indices)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElements(mode, count, type, indices);
}
void glwDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLint basevertex)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElementsBaseVertex(mode, count, type, indices, basevertex);
}
void glwDrawElementsIndirect (GLenum mode, GLenum type, const void *indirect)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElementsIndirect(mode, type, indirect);
}
void glwDrawElementsInstanced (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElementsInstanced(mode, count, type, indices, instancecount);
}
void glwDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLuint baseinstance)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElementsInstancedBaseInstance(mode, count, type, indices, instancecount, baseinstance);
}
void glwDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElementsInstancedBaseVertex(mode, count, type, indices, instancecount, basevertex);
}
void glwDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawElementsInstancedBaseVertexBaseInstance(mode, count, type, indices, instancecount, basevertex, baseinstance);
}
void glwDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawRangeElements(mode, start, end, count, type, indices);
}
void glwDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void *indices, GLint basevertex)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawRangeElementsBaseVertex(mode, start, end, count, type, indices, basevertex);
}
void glwDrawTransformFeedback (GLenum mode, GLuint id)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawTransformFeedback(mode, id);
}
void glwDrawTransformFeedbackInstanced (GLenum mode, GLuint id, GLsizei instancecount)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawTransformFeedbackInstanced(mode, id, instancecount);
}
void glwDrawTransformFeedbackStream (GLenum mode, GLuint id, GLuint stream)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawTransformFeedbackStream(mode, id, stream);
}
void glwDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->drawTransformFeedbackStreamInstanced(mode, id, stream, instancecount);
}
void glwEGLImageTargetRenderbufferStorageOES (GLenum target, GLeglImageOES image)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->eglImageTargetRenderbufferStorageOES(target, image);
}
void glwEGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->eglImageTargetTexture2DOES(target, image);
}
void glwEnable (GLenum cap)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enable(cap);
}
void glwEnableClientStateIndexedEXT (GLenum array, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enableClientStateIndexedEXT(array, index);
}
void glwEnableClientStateiEXT (GLenum array, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enableClientStateiEXT(array, index);
}
void glwEnableVertexArrayAttrib (GLuint vaobj, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enableVertexArrayAttrib(vaobj, index);
}
void glwEnableVertexArrayAttribEXT (GLuint vaobj, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enableVertexArrayAttribEXT(vaobj, index);
}
void glwEnableVertexArrayEXT (GLuint vaobj, GLenum array)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enableVertexArrayEXT(vaobj, array);
}
void glwEnableVertexAttribArray (GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enableVertexAttribArray(index);
}
void glwEnablei (GLenum target, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->enablei(target, index);
}
void glwEndConditionalRender (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->endConditionalRender();
}
void glwEndQuery (GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->endQuery(target);
}
void glwEndQueryIndexed (GLenum target, GLuint index)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->endQueryIndexed(target, index);
}
void glwEndTransformFeedback (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->endTransformFeedback();
}
GLsync glwFenceSync (GLenum condition, GLbitfield flags)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLsync)0;
return gl->fenceSync(condition, flags);
}
void glwFinish (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->finish();
}
void glwFlush (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->flush();
}
void glwFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->flushMappedBufferRange(target, offset, length);
}
void glwFlushMappedNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->flushMappedNamedBufferRange(buffer, offset, length);
}
void glwFlushMappedNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->flushMappedNamedBufferRangeEXT(buffer, offset, length);
}
void glwFramebufferDrawBufferEXT (GLuint framebuffer, GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferDrawBufferEXT(framebuffer, mode);
}
void glwFramebufferDrawBuffersEXT (GLuint framebuffer, GLsizei n, const GLenum *bufs)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferDrawBuffersEXT(framebuffer, n, bufs);
}
void glwFramebufferParameteri (GLenum target, GLenum pname, GLint param)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferParameteri(target, pname, param);
}
void glwFramebufferReadBufferEXT (GLuint framebuffer, GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferReadBufferEXT(framebuffer, mode);
}
void glwFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
}
void glwFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTexture(target, attachment, texture, level);
}
void glwFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTexture1D(target, attachment, textarget, texture, level);
}
void glwFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTexture2D(target, attachment, textarget, texture, level);
}
void glwFramebufferTexture2DMultisampleEXT (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLsizei samples)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTexture2DMultisampleEXT(target, attachment, textarget, texture, level, samples);
}
void glwFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTexture3D(target, attachment, textarget, texture, level, zoffset);
}
void glwFramebufferTexture3DOES (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTexture3DOES(target, attachment, textarget, texture, level, zoffset);
}
void glwFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTextureLayer(target, attachment, texture, level, layer);
}
void glwFramebufferTextureMultisampleMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLsizei samples, GLint baseViewIndex, GLsizei numViews)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTextureMultisampleMultiviewOVR(target, attachment, texture, level, samples, baseViewIndex, numViews);
}
void glwFramebufferTextureMultiviewOVR (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint baseViewIndex, GLsizei numViews)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->framebufferTextureMultiviewOVR(target, attachment, texture, level, baseViewIndex, numViews);
}
void glwFrontFace (GLenum mode)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->frontFace(mode);
}
void glwGenBuffers (GLsizei n, GLuint *buffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genBuffers(n, buffers);
}
void glwGenFramebuffers (GLsizei n, GLuint *framebuffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genFramebuffers(n, framebuffers);
}
void glwGenProgramPipelines (GLsizei n, GLuint *pipelines)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genProgramPipelines(n, pipelines);
}
void glwGenQueries (GLsizei n, GLuint *ids)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genQueries(n, ids);
}
void glwGenRenderbuffers (GLsizei n, GLuint *renderbuffers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genRenderbuffers(n, renderbuffers);
}
void glwGenSamplers (GLsizei count, GLuint *samplers)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genSamplers(count, samplers);
}
void glwGenTextures (GLsizei n, GLuint *textures)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genTextures(n, textures);
}
void glwGenTransformFeedbacks (GLsizei n, GLuint *ids)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genTransformFeedbacks(n, ids);
}
void glwGenVertexArrays (GLsizei n, GLuint *arrays)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->genVertexArrays(n, arrays);
}
void glwGenerateMipmap (GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->generateMipmap(target);
}
void glwGenerateMultiTexMipmapEXT (GLenum texunit, GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->generateMultiTexMipmapEXT(texunit, target);
}
void glwGenerateTextureMipmap (GLuint texture)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->generateTextureMipmap(texture);
}
void glwGenerateTextureMipmapEXT (GLuint texture, GLenum target)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->generateTextureMipmapEXT(texture, target);
}
void glwGetActiveAtomicCounterBufferiv (GLuint program, GLuint bufferIndex, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveAtomicCounterBufferiv(program, bufferIndex, pname, params);
}
void glwGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveAttrib(program, index, bufSize, length, size, type, name);
}
void glwGetActiveSubroutineName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveSubroutineName(program, shadertype, index, bufsize, length, name);
}
void glwGetActiveSubroutineUniformName (GLuint program, GLenum shadertype, GLuint index, GLsizei bufsize, GLsizei *length, GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveSubroutineUniformName(program, shadertype, index, bufsize, length, name);
}
void glwGetActiveSubroutineUniformiv (GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint *values)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveSubroutineUniformiv(program, shadertype, index, pname, values);
}
void glwGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveUniform(program, index, bufSize, length, size, type, name);
}
void glwGetActiveUniformBlockName (GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformBlockName)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockName);
}
void glwGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveUniformBlockiv(program, uniformBlockIndex, pname, params);
}
void glwGetActiveUniformName (GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei *length, GLchar *uniformName)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveUniformName(program, uniformIndex, bufSize, length, uniformName);
}
void glwGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getActiveUniformsiv(program, uniformCount, uniformIndices, pname, params);
}
void glwGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getAttachedShaders(program, maxCount, count, shaders);
}
GLint glwGetAttribLocation (GLuint program, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLint)0;
return gl->getAttribLocation(program, name);
}
void glwGetBooleani_v (GLenum target, GLuint index, GLboolean *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getBooleani_v(target, index, data);
}
void glwGetBooleanv (GLenum pname, GLboolean *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getBooleanv(pname, data);
}
void glwGetBufferParameteri64v (GLenum target, GLenum pname, GLint64 *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getBufferParameteri64v(target, pname, params);
}
void glwGetBufferParameteriv (GLenum target, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getBufferParameteriv(target, pname, params);
}
void glwGetBufferPointerv (GLenum target, GLenum pname, void **params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getBufferPointerv(target, pname, params);
}
void glwGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getBufferSubData(target, offset, size, data);
}
void glwGetCompressedMultiTexImageEXT (GLenum texunit, GLenum target, GLint lod, void *img)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getCompressedMultiTexImageEXT(texunit, target, lod, img);
}
void glwGetCompressedTexImage (GLenum target, GLint level, void *img)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getCompressedTexImage(target, level, img);
}
void glwGetCompressedTextureImage (GLuint texture, GLint level, GLsizei bufSize, void *pixels)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getCompressedTextureImage(texture, level, bufSize, pixels);
}
void glwGetCompressedTextureImageEXT (GLuint texture, GLenum target, GLint lod, void *img)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getCompressedTextureImageEXT(texture, target, lod, img);
}
void glwGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void *pixels)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels);
}
GLuint glwGetDebugMessageLog (GLuint count, GLsizei bufSize, GLenum *sources, GLenum *types, GLuint *ids, GLenum *severities, GLsizei *lengths, GLchar *messageLog)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLuint)0;
return gl->getDebugMessageLog(count, bufSize, sources, types, ids, severities, lengths, messageLog);
}
void glwGetDoublei_v (GLenum target, GLuint index, GLdouble *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getDoublei_v(target, index, data);
}
void glwGetDoublev (GLenum pname, GLdouble *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getDoublev(pname, data);
}
GLenum glwGetError (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return GL_INVALID_OPERATION;
return gl->getError();
}
void glwGetFloati_v (GLenum target, GLuint index, GLfloat *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getFloati_v(target, index, data);
}
void glwGetFloatv (GLenum pname, GLfloat *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getFloatv(pname, data);
}
GLint glwGetFragDataIndex (GLuint program, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLint)0;
return gl->getFragDataIndex(program, name);
}
GLint glwGetFragDataLocation (GLuint program, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLint)0;
return gl->getFragDataLocation(program, name);
}
void glwGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getFramebufferAttachmentParameteriv(target, attachment, pname, params);
}
void glwGetFramebufferParameteriv (GLenum target, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getFramebufferParameteriv(target, pname, params);
}
void glwGetFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getFramebufferParameterivEXT(framebuffer, pname, params);
}
GLenum glwGetGraphicsResetStatus (void)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLenum)0;
return gl->getGraphicsResetStatus();
}
void glwGetInteger64i_v (GLenum target, GLuint index, GLint64 *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getInteger64i_v(target, index, data);
}
void glwGetInteger64v (GLenum pname, GLint64 *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getInteger64v(pname, data);
}
void glwGetIntegeri_v (GLenum target, GLuint index, GLint *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getIntegeri_v(target, index, data);
}
void glwGetIntegerv (GLenum pname, GLint *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getIntegerv(pname, data);
}
void glwGetInternalformatSampleivNV (GLenum target, GLenum internalformat, GLsizei samples, GLenum pname, GLsizei bufSize, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getInternalformatSampleivNV(target, internalformat, samples, pname, bufSize, params);
}
void glwGetInternalformati64v (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint64 *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getInternalformati64v(target, internalformat, pname, bufSize, params);
}
void glwGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getInternalformativ(target, internalformat, pname, bufSize, params);
}
void glwGetMultiTexEnvfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexEnvfvEXT(texunit, target, pname, params);
}
void glwGetMultiTexEnvivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexEnvivEXT(texunit, target, pname, params);
}
void glwGetMultiTexGendvEXT (GLenum texunit, GLenum coord, GLenum pname, GLdouble *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexGendvEXT(texunit, coord, pname, params);
}
void glwGetMultiTexGenfvEXT (GLenum texunit, GLenum coord, GLenum pname, GLfloat *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexGenfvEXT(texunit, coord, pname, params);
}
void glwGetMultiTexGenivEXT (GLenum texunit, GLenum coord, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexGenivEXT(texunit, coord, pname, params);
}
void glwGetMultiTexImageEXT (GLenum texunit, GLenum target, GLint level, GLenum format, GLenum type, void *pixels)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexImageEXT(texunit, target, level, format, type, pixels);
}
void glwGetMultiTexLevelParameterfvEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLfloat *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexLevelParameterfvEXT(texunit, target, level, pname, params);
}
void glwGetMultiTexLevelParameterivEXT (GLenum texunit, GLenum target, GLint level, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexLevelParameterivEXT(texunit, target, level, pname, params);
}
void glwGetMultiTexParameterIivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexParameterIivEXT(texunit, target, pname, params);
}
void glwGetMultiTexParameterIuivEXT (GLenum texunit, GLenum target, GLenum pname, GLuint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexParameterIuivEXT(texunit, target, pname, params);
}
void glwGetMultiTexParameterfvEXT (GLenum texunit, GLenum target, GLenum pname, GLfloat *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexParameterfvEXT(texunit, target, pname, params);
}
void glwGetMultiTexParameterivEXT (GLenum texunit, GLenum target, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultiTexParameterivEXT(texunit, target, pname, params);
}
void glwGetMultisamplefv (GLenum pname, GLuint index, GLfloat *val)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getMultisamplefv(pname, index, val);
}
void glwGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferParameteri64v(buffer, pname, params);
}
void glwGetNamedBufferParameteriv (GLuint buffer, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferParameteriv(buffer, pname, params);
}
void glwGetNamedBufferParameterivEXT (GLuint buffer, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferParameterivEXT(buffer, pname, params);
}
void glwGetNamedBufferPointerv (GLuint buffer, GLenum pname, void **params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferPointerv(buffer, pname, params);
}
void glwGetNamedBufferPointervEXT (GLuint buffer, GLenum pname, void **params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferPointervEXT(buffer, pname, params);
}
void glwGetNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferSubData(buffer, offset, size, data);
}
void glwGetNamedBufferSubDataEXT (GLuint buffer, GLintptr offset, GLsizeiptr size, void *data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedBufferSubDataEXT(buffer, offset, size, data);
}
void glwGetNamedFramebufferAttachmentParameteriv (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname, params);
}
void glwGetNamedFramebufferAttachmentParameterivEXT (GLuint framebuffer, GLenum attachment, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedFramebufferAttachmentParameterivEXT(framebuffer, attachment, pname, params);
}
void glwGetNamedFramebufferParameteriv (GLuint framebuffer, GLenum pname, GLint *param)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedFramebufferParameteriv(framebuffer, pname, param);
}
void glwGetNamedFramebufferParameterivEXT (GLuint framebuffer, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedFramebufferParameterivEXT(framebuffer, pname, params);
}
void glwGetNamedProgramLocalParameterIivEXT (GLuint program, GLenum target, GLuint index, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedProgramLocalParameterIivEXT(program, target, index, params);
}
void glwGetNamedProgramLocalParameterIuivEXT (GLuint program, GLenum target, GLuint index, GLuint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedProgramLocalParameterIuivEXT(program, target, index, params);
}
void glwGetNamedProgramLocalParameterdvEXT (GLuint program, GLenum target, GLuint index, GLdouble *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedProgramLocalParameterdvEXT(program, target, index, params);
}
void glwGetNamedProgramLocalParameterfvEXT (GLuint program, GLenum target, GLuint index, GLfloat *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedProgramLocalParameterfvEXT(program, target, index, params);
}
void glwGetNamedProgramStringEXT (GLuint program, GLenum target, GLenum pname, void *string)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedProgramStringEXT(program, target, pname, string);
}
void glwGetNamedProgramivEXT (GLuint program, GLenum target, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedProgramivEXT(program, target, pname, params);
}
void glwGetNamedRenderbufferParameteriv (GLuint renderbuffer, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedRenderbufferParameteriv(renderbuffer, pname, params);
}
void glwGetNamedRenderbufferParameterivEXT (GLuint renderbuffer, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getNamedRenderbufferParameterivEXT(renderbuffer, pname, params);
}
void glwGetObjectLabel (GLenum identifier, GLuint name, GLsizei bufSize, GLsizei *length, GLchar *label)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getObjectLabel(identifier, name, bufSize, length, label);
}
void glwGetObjectPtrLabel (const void *ptr, GLsizei bufSize, GLsizei *length, GLchar *label)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getObjectPtrLabel(ptr, bufSize, length, label);
}
void glwGetPointerIndexedvEXT (GLenum target, GLuint index, void **data)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getPointerIndexedvEXT(target, index, data);
}
void glwGetPointeri_vEXT (GLenum pname, GLuint index, void **params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getPointeri_vEXT(pname, index, params);
}
void glwGetPointerv (GLenum pname, void **params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getPointerv(pname, params);
}
void glwGetProgramBinary (GLuint program, GLsizei bufSize, GLsizei *length, GLenum *binaryFormat, void *binary)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramBinary(program, bufSize, length, binaryFormat, binary);
}
void glwGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramInfoLog(program, bufSize, length, infoLog);
}
void glwGetProgramInterfaceiv (GLuint program, GLenum programInterface, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramInterfaceiv(program, programInterface, pname, params);
}
void glwGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei *length, GLchar *infoLog)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramPipelineInfoLog(pipeline, bufSize, length, infoLog);
}
void glwGetProgramPipelineiv (GLuint pipeline, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramPipelineiv(pipeline, pname, params);
}
GLuint glwGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLuint)0;
return gl->getProgramResourceIndex(program, programInterface, name);
}
GLint glwGetProgramResourceLocation (GLuint program, GLenum programInterface, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLint)0;
return gl->getProgramResourceLocation(program, programInterface, name);
}
GLint glwGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return (GLint)0;
return gl->getProgramResourceLocationIndex(program, programInterface, name);
}
void glwGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei *length, GLchar *name)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramResourceName(program, programInterface, index, bufSize, length, name);
}
void glwGetProgramResourceiv (GLuint program, GLenum programInterface, GLuint index, GLsizei propCount, const GLenum *props, GLsizei bufSize, GLsizei *length, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramResourceiv(program, programInterface, index, propCount, props, bufSize, length, params);
}
void glwGetProgramStageiv (GLuint program, GLenum shadertype, GLenum pname, GLint *values)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramStageiv(program, shadertype, pname, values);
}
void glwGetProgramiv (GLuint program, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getProgramiv(program, pname, params);
}
void glwGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryBufferObjecti64v(id, buffer, pname, offset);
}
void glwGetQueryBufferObjectiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryBufferObjectiv(id, buffer, pname, offset);
}
void glwGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryBufferObjectui64v(id, buffer, pname, offset);
}
void glwGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryBufferObjectuiv(id, buffer, pname, offset);
}
void glwGetQueryIndexediv (GLenum target, GLuint index, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryIndexediv(target, index, pname, params);
}
void glwGetQueryObjecti64v (GLuint id, GLenum pname, GLint64 *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryObjecti64v(id, pname, params);
}
void glwGetQueryObjectiv (GLuint id, GLenum pname, GLint *params)
{
const glw::Functions* gl = glw::getCurrentThreadFunctions();
if (!gl)
return;
gl->getQueryObjectiv(id, pname, params