1 #include "coregl_export.h"
4 glActiveTexture(GLenum texture)
6 ovr_glActiveTexture(texture);
10 glAttachShader(GLuint program, GLuint shader)
12 ovr_glAttachShader(program, shader);
16 glBindAttribLocation(GLuint program, GLuint index, const char* name)
18 ovr_glBindAttribLocation(program, index, name);
22 glBindBuffer(GLenum target, GLuint buffer)
24 ovr_glBindBuffer(target, buffer);
28 glBindFramebuffer(GLenum target, GLuint framebuffer)
30 ovr_glBindFramebuffer(target, framebuffer);
34 glBindRenderbuffer(GLenum target, GLuint renderbuffer)
36 ovr_glBindRenderbuffer(target, renderbuffer);
40 glBindTexture(GLenum target, GLuint texture)
42 ovr_glBindTexture(target, texture);
46 glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
48 ovr_glBlendColor(red, green, blue, alpha);
52 glBlendEquation(GLenum mode)
54 ovr_glBlendEquation(mode);
58 glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
60 ovr_glBlendEquationSeparate(modeRGB, modeAlpha);
64 glBlendFunc(GLenum sfactor, GLenum dfactor)
66 ovr_glBlendFunc(sfactor, dfactor);
70 glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
72 ovr_glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
76 glBufferData(GLenum target, GLsizeiptr size, const void* data, GLenum usage)
78 ovr_glBufferData(target, size, data, usage);
82 glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void* data)
84 ovr_glBufferSubData(target, offset, size, data);
88 glCheckFramebufferStatus(GLenum target)
90 return ovr_glCheckFramebufferStatus(target);
94 glClear(GLbitfield mask)
100 glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
102 ovr_glClearColor(red, green, blue, alpha);
106 glClearDepthf(GLclampf depth)
108 ovr_glClearDepthf(depth);
112 glClearStencil(GLint s)
114 ovr_glClearStencil(s);
118 glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
120 ovr_glColorMask(red, green, blue, alpha);
124 glCompileShader(GLuint shader)
126 ovr_glCompileShader(shader);
130 glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void* data)
132 ovr_glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
136 glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data)
138 ovr_glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
142 glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
144 ovr_glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
148 glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
150 ovr_glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
154 glCreateProgram(void)
156 return ovr_glCreateProgram();
160 glCreateShader(GLenum type)
162 return ovr_glCreateShader(type);
166 glCullFace(GLenum mode)
168 ovr_glCullFace(mode);
172 glDeleteBuffers(GLsizei n, const GLuint* buffers)
174 ovr_glDeleteBuffers(n, buffers);
178 glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers)
180 ovr_glDeleteFramebuffers(n, framebuffers);
184 glDeleteProgram(GLuint program)
186 ovr_glDeleteProgram(program);
190 glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers)
192 ovr_glDeleteRenderbuffers(n, renderbuffers);
196 glDeleteShader(GLuint shader)
198 ovr_glDeleteShader(shader);
202 glDeleteTextures(GLsizei n, const GLuint* textures)
204 ovr_glDeleteTextures(n, textures);
208 glDepthFunc(GLenum func)
210 ovr_glDepthFunc(func);
214 glDepthMask(GLboolean flag)
216 ovr_glDepthMask(flag);
220 glDepthRangef(GLclampf zNear, GLclampf zFar)
222 ovr_glDepthRangef(zNear, zFar);
226 glDetachShader(GLuint program, GLuint shader)
228 ovr_glDetachShader(program, shader);
232 glDisable(GLenum cap)
238 glDisableVertexAttribArray(GLuint index)
240 ovr_glDisableVertexAttribArray(index);
244 glDrawArrays(GLenum mode, GLint first, GLsizei count)
246 ovr_glDrawArrays(mode, first, count);
250 glDrawElements(GLenum mode, GLsizei count, GLenum type, const void* indices)
252 ovr_glDrawElements(mode, count, type, indices);
262 glEnableVertexAttribArray(GLuint index)
264 ovr_glEnableVertexAttribArray(index);
280 glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
282 ovr_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
286 glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
288 ovr_glFramebufferTexture2D(target, attachment, textarget, texture, level);
292 glFrontFace(GLenum mode)
294 ovr_glFrontFace(mode);
298 glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params)
300 ovr_glGetVertexAttribfv(index, pname, params);
304 glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params)
306 ovr_glGetVertexAttribiv(index, pname, params);
310 glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer)
312 ovr_glGetVertexAttribPointerv(index, pname, pointer);
316 glHint(GLenum target, GLenum mode)
318 ovr_glHint(target, mode);
322 glGenBuffers(GLsizei n, GLuint* buffers)
324 ovr_glGenBuffers(n, buffers);
328 glGenerateMipmap(GLenum target)
330 ovr_glGenerateMipmap(target);
334 glGenFramebuffers(GLsizei n, GLuint* framebuffers)
336 ovr_glGenFramebuffers(n, framebuffers);
340 glGenRenderbuffers(GLsizei n, GLuint* renderbuffers)
342 ovr_glGenRenderbuffers(n, renderbuffers);
346 glGenTextures(GLsizei n, GLuint* textures)
348 ovr_glGenTextures(n, textures);
352 glGetActiveAttrib(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name)
354 ovr_glGetActiveAttrib(program, index, bufsize, length, size, type, name);
358 glGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, char* name)
360 ovr_glGetActiveUniform(program, index, bufsize, length, size, type, name);
364 glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders)
366 ovr_glGetAttachedShaders(program, maxcount, count, shaders);
370 glGetAttribLocation(GLuint program, const char* name)
372 return ovr_glGetAttribLocation(program, name);
376 glGetBooleanv(GLenum pname, GLboolean* params)
378 ovr_glGetBooleanv(pname, params);
382 glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
384 ovr_glGetBufferParameteriv(target, pname, params);
390 return ovr_glGetError();
394 glGetFloatv(GLenum pname, GLfloat* params)
396 ovr_glGetFloatv(pname, params);
400 glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params)
402 ovr_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
406 glGetIntegerv(GLenum pname, GLint* params)
408 ovr_glGetIntegerv(pname, params);
412 glGetProgramiv(GLuint program, GLenum pname, GLint* params)
414 ovr_glGetProgramiv(program, pname, params);
418 glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog)
420 ovr_glGetProgramInfoLog(program, bufsize, length, infolog);
424 glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params)
426 ovr_glGetRenderbufferParameteriv(target, pname, params);
430 glGetShaderiv(GLuint shader, GLenum pname, GLint* params)
432 ovr_glGetShaderiv(shader, pname, params);
436 glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog)
438 ovr_glGetShaderInfoLog(shader, bufsize, length, infolog);
442 glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
444 ovr_glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
448 glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, char* source)
450 ovr_glGetShaderSource(shader, bufsize, length, source);
454 glGetString(GLenum name)
456 return ovr_glGetString(name);
460 glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
462 ovr_glGetTexParameterfv(target, pname, params);
466 glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
468 ovr_glGetTexParameteriv(target, pname, params);
472 glGetUniformfv(GLuint program, GLint location, GLfloat* params)
474 ovr_glGetUniformfv(program, location, params);
478 glGetUniformiv(GLuint program, GLint location, GLint* params)
480 ovr_glGetUniformiv(program, location, params);
484 glGetUniformLocation(GLuint program, const char* name)
486 return ovr_glGetUniformLocation(program, name);
490 glIsBuffer(GLuint buffer)
492 return ovr_glIsBuffer(buffer);
496 glIsEnabled(GLenum cap)
498 return ovr_glIsEnabled(cap);
502 glIsFramebuffer(GLuint framebuffer)
504 return ovr_glIsFramebuffer(framebuffer);
508 glIsProgram(GLuint program)
510 return ovr_glIsProgram(program);
514 glIsRenderbuffer(GLuint renderbuffer)
516 return ovr_glIsRenderbuffer(renderbuffer);
520 glIsShader(GLuint shader)
522 return ovr_glIsShader(shader);
526 glIsTexture(GLuint texture)
528 return ovr_glIsTexture(texture);
532 glLineWidth(GLfloat width)
534 ovr_glLineWidth(width);
538 glLinkProgram(GLuint program)
540 ovr_glLinkProgram(program);
544 glPixelStorei(GLenum pname, GLint param)
546 ovr_glPixelStorei(pname, param);
550 glPolygonOffset(GLfloat factor, GLfloat units)
552 ovr_glPolygonOffset(factor, units);
556 glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void* pixels)
558 ovr_glReadPixels(x, y, width, height, format, type, pixels);
562 glReleaseShaderCompiler(void)
564 ovr_glReleaseShaderCompiler();
568 glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
570 ovr_glRenderbufferStorage(target, internalformat, width, height);
574 glSampleCoverage(GLclampf value, GLboolean invert)
576 ovr_glSampleCoverage(value, invert);
580 glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
582 ovr_glScissor(x, y, width, height);
586 glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length)
588 ovr_glShaderBinary(n, shaders, binaryformat, binary, length);
592 glShaderSource(GLuint shader, GLsizei count, const char** string, const GLint* length)
594 ovr_glShaderSource(shader, count, string, length);
598 glStencilFunc(GLenum func, GLint ref, GLuint mask)
600 ovr_glStencilFunc(func, ref, mask);
604 glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
606 ovr_glStencilFuncSeparate(face, func, ref, mask);
610 glStencilMask(GLuint mask)
612 ovr_glStencilMask(mask);
616 glStencilMaskSeparate(GLenum face, GLuint mask)
618 ovr_glStencilMaskSeparate(face, mask);
622 glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
624 ovr_glStencilOp(fail, zfail, zpass);
628 glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
630 ovr_glStencilOpSeparate(face, fail, zfail, zpass);
634 glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void* pixels)
636 ovr_glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
640 glTexParameterf(GLenum target, GLenum pname, GLfloat param)
642 ovr_glTexParameterf(target, pname, param);
646 glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
648 ovr_glTexParameterfv(target, pname, params);
652 glTexParameteri(GLenum target, GLenum pname, GLint param)
654 ovr_glTexParameteri(target, pname, param);
658 glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
660 ovr_glTexParameteriv(target, pname, params);
664 glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* pixels)
666 ovr_glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
670 glUniform1f(GLint location, GLfloat x)
672 ovr_glUniform1f(location, x);
676 glUniform1fv(GLint location, GLsizei count, const GLfloat* v)
678 ovr_glUniform1fv(location, count, v);
682 glUniform1i(GLint location, GLint x)
684 ovr_glUniform1i(location, x);
688 glUniform1iv(GLint location, GLsizei count, const GLint* v)
690 ovr_glUniform1iv(location, count, v);
694 glUniform2f(GLint location, GLfloat x, GLfloat y)
696 ovr_glUniform2f(location, x, y);
700 glUniform2fv(GLint location, GLsizei count, const GLfloat* v)
702 ovr_glUniform2fv(location, count, v);
706 glUniform2i(GLint location, GLint x, GLint y)
708 ovr_glUniform2i(location, x, y);
712 glUniform2iv(GLint location, GLsizei count, const GLint* v)
714 ovr_glUniform2iv(location, count, v);
718 glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
720 ovr_glUniform3f(location, x, y, z);
724 glUniform3fv(GLint location, GLsizei count, const GLfloat* v)
726 ovr_glUniform3fv(location, count, v);
730 glUniform3i(GLint location, GLint x, GLint y, GLint z)
732 ovr_glUniform3i(location, x, y, z);
736 glUniform3iv(GLint location, GLsizei count, const GLint* v)
738 ovr_glUniform3iv(location, count, v);
742 glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
744 ovr_glUniform4f(location, x, y, z, w);
748 glUniform4fv(GLint location, GLsizei count, const GLfloat* v)
750 ovr_glUniform4fv(location, count, v);
754 glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
756 ovr_glUniform4i(location, x, y, z, w);
760 glUniform4iv(GLint location, GLsizei count, const GLint* v)
762 ovr_glUniform4iv(location, count, v);
766 glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
768 ovr_glUniformMatrix2fv(location, count, transpose, value);
772 glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
774 ovr_glUniformMatrix3fv(location, count, transpose, value);
778 glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
780 ovr_glUniformMatrix4fv(location, count, transpose, value);
784 glUseProgram(GLuint program)
786 ovr_glUseProgram(program);
790 glValidateProgram(GLuint program)
792 ovr_glValidateProgram(program);
796 glVertexAttrib1f(GLuint indx, GLfloat x)
798 ovr_glVertexAttrib1f(indx, x);
802 glVertexAttrib1fv(GLuint indx, const GLfloat* values)
804 ovr_glVertexAttrib1fv(indx, values);
808 glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
810 ovr_glVertexAttrib2f(indx, x, y);
814 glVertexAttrib2fv(GLuint indx, const GLfloat* values)
816 ovr_glVertexAttrib2fv(indx, values);
820 glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
822 ovr_glVertexAttrib3f(indx, x, y, z);
826 glVertexAttrib3fv(GLuint indx, const GLfloat* values)
828 ovr_glVertexAttrib3fv(indx, values);
832 glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
834 ovr_glVertexAttrib4f(indx, x, y, z, w);
838 glVertexAttrib4fv(GLuint indx, const GLfloat* values)
840 ovr_glVertexAttrib4fv(indx, values);
844 glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr)
846 ovr_glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
850 glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
852 ovr_glViewport(x, y, width, height);