1 #include "coregl_export.h"
4 coregl_api_glActiveTexture(GLenum texture)
6 ovr_glActiveTexture(texture);
10 coregl_api_glAttachShader(GLuint program, GLuint shader)
12 ovr_glAttachShader(program, shader);
16 coregl_api_glBindAttribLocation(GLuint program, GLuint index, const char* name)
18 ovr_glBindAttribLocation(program, index, name);
22 coregl_api_glBindBuffer(GLenum target, GLuint buffer)
24 ovr_glBindBuffer(target, buffer);
28 coregl_api_glBindFramebuffer(GLenum target, GLuint framebuffer)
30 ovr_glBindFramebuffer(target, framebuffer);
34 coregl_api_glBindRenderbuffer(GLenum target, GLuint renderbuffer)
36 ovr_glBindRenderbuffer(target, renderbuffer);
40 coregl_api_glBindTexture(GLenum target, GLuint texture)
42 ovr_glBindTexture(target, texture);
46 coregl_api_glBlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
48 ovr_glBlendColor(red, green, blue, alpha);
52 coregl_api_glBlendEquation(GLenum mode)
54 ovr_glBlendEquation(mode);
58 coregl_api_glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha)
60 ovr_glBlendEquationSeparate(modeRGB, modeAlpha);
64 coregl_api_glBlendFunc(GLenum sfactor, GLenum dfactor)
66 ovr_glBlendFunc(sfactor, dfactor);
70 coregl_api_glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
72 ovr_glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
76 coregl_api_glBufferData(GLenum target, GLsizeiptr size, const void* data, GLenum usage)
78 ovr_glBufferData(target, size, data, usage);
82 coregl_api_glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const void* data)
84 ovr_glBufferSubData(target, offset, size, data);
88 coregl_api_glCheckFramebufferStatus(GLenum target)
90 return ovr_glCheckFramebufferStatus(target);
94 coregl_api_glClear(GLbitfield mask)
100 coregl_api_glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
102 ovr_glClearColor(red, green, blue, alpha);
106 coregl_api_glClearDepthf(GLclampf depth)
108 ovr_glClearDepthf(depth);
112 coregl_api_glClearStencil(GLint s)
114 ovr_glClearStencil(s);
118 coregl_api_glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
120 ovr_glColorMask(red, green, blue, alpha);
124 coregl_api_glCompileShader(GLuint shader)
126 ovr_glCompileShader(shader);
130 coregl_api_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 coregl_api_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 coregl_api_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 coregl_api_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 coregl_api_glCreateProgram(void)
156 return ovr_glCreateProgram();
160 coregl_api_glCreateShader(GLenum type)
162 return ovr_glCreateShader(type);
166 coregl_api_glCullFace(GLenum mode)
168 ovr_glCullFace(mode);
172 coregl_api_glDeleteBuffers(GLsizei n, const GLuint* buffers)
174 ovr_glDeleteBuffers(n, buffers);
178 coregl_api_glDeleteFramebuffers(GLsizei n, const GLuint* framebuffers)
180 ovr_glDeleteFramebuffers(n, framebuffers);
184 coregl_api_glDeleteProgram(GLuint program)
186 ovr_glDeleteProgram(program);
190 coregl_api_glDeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers)
192 ovr_glDeleteRenderbuffers(n, renderbuffers);
196 coregl_api_glDeleteShader(GLuint shader)
198 ovr_glDeleteShader(shader);
202 coregl_api_glDeleteTextures(GLsizei n, const GLuint* textures)
204 ovr_glDeleteTextures(n, textures);
208 coregl_api_glDepthFunc(GLenum func)
210 ovr_glDepthFunc(func);
214 coregl_api_glDepthMask(GLboolean flag)
216 ovr_glDepthMask(flag);
220 coregl_api_glDepthRangef(GLclampf zNear, GLclampf zFar)
222 ovr_glDepthRangef(zNear, zFar);
226 coregl_api_glDetachShader(GLuint program, GLuint shader)
228 ovr_glDetachShader(program, shader);
232 coregl_api_glDisable(GLenum cap)
238 coregl_api_glDisableVertexAttribArray(GLuint index)
240 ovr_glDisableVertexAttribArray(index);
244 coregl_api_glDrawArrays(GLenum mode, GLint first, GLsizei count)
246 ovr_glDrawArrays(mode, first, count);
250 coregl_api_glDrawElements(GLenum mode, GLsizei count, GLenum type, const void* indices)
252 ovr_glDrawElements(mode, count, type, indices);
256 coregl_api_glEnable(GLenum cap)
262 coregl_api_glEnableVertexAttribArray(GLuint index)
264 ovr_glEnableVertexAttribArray(index);
268 coregl_api_glFinish(void)
274 coregl_api_glFlush(void)
280 coregl_api_glFramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
282 ovr_glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
286 coregl_api_glFramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
288 ovr_glFramebufferTexture2D(target, attachment, textarget, texture, level);
292 coregl_api_glFrontFace(GLenum mode)
294 ovr_glFrontFace(mode);
298 coregl_api_glGetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params)
300 ovr_glGetVertexAttribfv(index, pname, params);
304 coregl_api_glGetVertexAttribiv(GLuint index, GLenum pname, GLint* params)
306 ovr_glGetVertexAttribiv(index, pname, params);
310 coregl_api_glGetVertexAttribPointerv(GLuint index, GLenum pname, void** pointer)
312 ovr_glGetVertexAttribPointerv(index, pname, pointer);
316 coregl_api_glHint(GLenum target, GLenum mode)
318 ovr_glHint(target, mode);
322 coregl_api_glGenBuffers(GLsizei n, GLuint* buffers)
324 ovr_glGenBuffers(n, buffers);
328 coregl_api_glGenerateMipmap(GLenum target)
330 ovr_glGenerateMipmap(target);
334 coregl_api_glGenFramebuffers(GLsizei n, GLuint* framebuffers)
336 ovr_glGenFramebuffers(n, framebuffers);
340 coregl_api_glGenRenderbuffers(GLsizei n, GLuint* renderbuffers)
342 ovr_glGenRenderbuffers(n, renderbuffers);
346 coregl_api_glGenTextures(GLsizei n, GLuint* textures)
348 ovr_glGenTextures(n, textures);
352 coregl_api_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 coregl_api_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 coregl_api_glGetAttachedShaders(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders)
366 ovr_glGetAttachedShaders(program, maxcount, count, shaders);
370 coregl_api_glGetAttribLocation(GLuint program, const char* name)
372 return ovr_glGetAttribLocation(program, name);
376 coregl_api_glGetBooleanv(GLenum pname, GLboolean* params)
378 ovr_glGetBooleanv(pname, params);
382 coregl_api_glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
384 ovr_glGetBufferParameteriv(target, pname, params);
388 coregl_api_glGetError(void)
390 return ovr_glGetError();
394 coregl_api_glGetFloatv(GLenum pname, GLfloat* params)
396 ovr_glGetFloatv(pname, params);
400 coregl_api_glGetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, GLint* params)
402 ovr_glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
406 coregl_api_glGetIntegerv(GLenum pname, GLint* params)
408 ovr_glGetIntegerv(pname, params);
412 coregl_api_glGetProgramiv(GLuint program, GLenum pname, GLint* params)
414 ovr_glGetProgramiv(program, pname, params);
418 coregl_api_glGetProgramInfoLog(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog)
420 ovr_glGetProgramInfoLog(program, bufsize, length, infolog);
424 coregl_api_glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint* params)
426 ovr_glGetRenderbufferParameteriv(target, pname, params);
430 coregl_api_glGetShaderiv(GLuint shader, GLenum pname, GLint* params)
432 ovr_glGetShaderiv(shader, pname, params);
436 coregl_api_glGetShaderInfoLog(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog)
438 ovr_glGetShaderInfoLog(shader, bufsize, length, infolog);
442 coregl_api_glGetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision)
444 ovr_glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
448 coregl_api_glGetShaderSource(GLuint shader, GLsizei bufsize, GLsizei* length, char* source)
450 ovr_glGetShaderSource(shader, bufsize, length, source);
454 coregl_api_glGetString(GLenum name)
456 return ovr_glGetString(name);
460 coregl_api_glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
462 ovr_glGetTexParameterfv(target, pname, params);
466 coregl_api_glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
468 ovr_glGetTexParameteriv(target, pname, params);
472 coregl_api_glGetUniformfv(GLuint program, GLint location, GLfloat* params)
474 ovr_glGetUniformfv(program, location, params);
478 coregl_api_glGetUniformiv(GLuint program, GLint location, GLint* params)
480 ovr_glGetUniformiv(program, location, params);
484 coregl_api_glGetUniformLocation(GLuint program, const char* name)
486 return ovr_glGetUniformLocation(program, name);
490 coregl_api_glIsBuffer(GLuint buffer)
492 return ovr_glIsBuffer(buffer);
496 coregl_api_glIsEnabled(GLenum cap)
498 return ovr_glIsEnabled(cap);
502 coregl_api_glIsFramebuffer(GLuint framebuffer)
504 return ovr_glIsFramebuffer(framebuffer);
508 coregl_api_glIsProgram(GLuint program)
510 return ovr_glIsProgram(program);
514 coregl_api_glIsRenderbuffer(GLuint renderbuffer)
516 return ovr_glIsRenderbuffer(renderbuffer);
520 coregl_api_glIsShader(GLuint shader)
522 return ovr_glIsShader(shader);
526 coregl_api_glIsTexture(GLuint texture)
528 return ovr_glIsTexture(texture);
532 coregl_api_glLineWidth(GLfloat width)
534 ovr_glLineWidth(width);
538 coregl_api_glLinkProgram(GLuint program)
540 ovr_glLinkProgram(program);
544 coregl_api_glPixelStorei(GLenum pname, GLint param)
546 ovr_glPixelStorei(pname, param);
550 coregl_api_glPolygonOffset(GLfloat factor, GLfloat units)
552 ovr_glPolygonOffset(factor, units);
556 coregl_api_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 coregl_api_glReleaseShaderCompiler(void)
564 ovr_glReleaseShaderCompiler();
568 coregl_api_glRenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
570 ovr_glRenderbufferStorage(target, internalformat, width, height);
574 coregl_api_glSampleCoverage(GLclampf value, GLboolean invert)
576 ovr_glSampleCoverage(value, invert);
580 coregl_api_glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
582 ovr_glScissor(x, y, width, height);
586 coregl_api_glShaderBinary(GLsizei n, const GLuint* shaders, GLenum binaryformat, const void* binary, GLsizei length)
588 ovr_glShaderBinary(n, shaders, binaryformat, binary, length);
592 coregl_api_glShaderSource(GLuint shader, GLsizei count, const char** string, const GLint* length)
594 ovr_glShaderSource(shader, count, string, length);
598 coregl_api_glStencilFunc(GLenum func, GLint ref, GLuint mask)
600 ovr_glStencilFunc(func, ref, mask);
604 coregl_api_glStencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask)
606 ovr_glStencilFuncSeparate(face, func, ref, mask);
610 coregl_api_glStencilMask(GLuint mask)
612 ovr_glStencilMask(mask);
616 coregl_api_glStencilMaskSeparate(GLenum face, GLuint mask)
618 ovr_glStencilMaskSeparate(face, mask);
622 coregl_api_glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
624 ovr_glStencilOp(fail, zfail, zpass);
628 coregl_api_glStencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass)
630 ovr_glStencilOpSeparate(face, fail, zfail, zpass);
634 coregl_api_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 coregl_api_glTexParameterf(GLenum target, GLenum pname, GLfloat param)
642 ovr_glTexParameterf(target, pname, param);
646 coregl_api_glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
648 ovr_glTexParameterfv(target, pname, params);
652 coregl_api_glTexParameteri(GLenum target, GLenum pname, GLint param)
654 ovr_glTexParameteri(target, pname, param);
658 coregl_api_glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
660 ovr_glTexParameteriv(target, pname, params);
664 coregl_api_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 coregl_api_glUniform1f(GLint location, GLfloat x)
672 ovr_glUniform1f(location, x);
676 coregl_api_glUniform1fv(GLint location, GLsizei count, const GLfloat* v)
678 ovr_glUniform1fv(location, count, v);
682 coregl_api_glUniform1i(GLint location, GLint x)
684 ovr_glUniform1i(location, x);
688 coregl_api_glUniform1iv(GLint location, GLsizei count, const GLint* v)
690 ovr_glUniform1iv(location, count, v);
694 coregl_api_glUniform2f(GLint location, GLfloat x, GLfloat y)
696 ovr_glUniform2f(location, x, y);
700 coregl_api_glUniform2fv(GLint location, GLsizei count, const GLfloat* v)
702 ovr_glUniform2fv(location, count, v);
706 coregl_api_glUniform2i(GLint location, GLint x, GLint y)
708 ovr_glUniform2i(location, x, y);
712 coregl_api_glUniform2iv(GLint location, GLsizei count, const GLint* v)
714 ovr_glUniform2iv(location, count, v);
718 coregl_api_glUniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z)
720 ovr_glUniform3f(location, x, y, z);
724 coregl_api_glUniform3fv(GLint location, GLsizei count, const GLfloat* v)
726 ovr_glUniform3fv(location, count, v);
730 coregl_api_glUniform3i(GLint location, GLint x, GLint y, GLint z)
732 ovr_glUniform3i(location, x, y, z);
736 coregl_api_glUniform3iv(GLint location, GLsizei count, const GLint* v)
738 ovr_glUniform3iv(location, count, v);
742 coregl_api_glUniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
744 ovr_glUniform4f(location, x, y, z, w);
748 coregl_api_glUniform4fv(GLint location, GLsizei count, const GLfloat* v)
750 ovr_glUniform4fv(location, count, v);
754 coregl_api_glUniform4i(GLint location, GLint x, GLint y, GLint z, GLint w)
756 ovr_glUniform4i(location, x, y, z, w);
760 coregl_api_glUniform4iv(GLint location, GLsizei count, const GLint* v)
762 ovr_glUniform4iv(location, count, v);
766 coregl_api_glUniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
768 ovr_glUniformMatrix2fv(location, count, transpose, value);
772 coregl_api_glUniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
774 ovr_glUniformMatrix3fv(location, count, transpose, value);
778 coregl_api_glUniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, const GLfloat* value)
780 ovr_glUniformMatrix4fv(location, count, transpose, value);
784 coregl_api_glUseProgram(GLuint program)
786 ovr_glUseProgram(program);
790 coregl_api_glValidateProgram(GLuint program)
792 ovr_glValidateProgram(program);
796 coregl_api_glVertexAttrib1f(GLuint indx, GLfloat x)
798 ovr_glVertexAttrib1f(indx, x);
802 coregl_api_glVertexAttrib1fv(GLuint indx, const GLfloat* values)
804 ovr_glVertexAttrib1fv(indx, values);
808 coregl_api_glVertexAttrib2f(GLuint indx, GLfloat x, GLfloat y)
810 ovr_glVertexAttrib2f(indx, x, y);
814 coregl_api_glVertexAttrib2fv(GLuint indx, const GLfloat* values)
816 ovr_glVertexAttrib2fv(indx, values);
820 coregl_api_glVertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z)
822 ovr_glVertexAttrib3f(indx, x, y, z);
826 coregl_api_glVertexAttrib3fv(GLuint indx, const GLfloat* values)
828 ovr_glVertexAttrib3fv(indx, values);
832 coregl_api_glVertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
834 ovr_glVertexAttrib4f(indx, x, y, z, w);
838 coregl_api_glVertexAttrib4fv(GLuint indx, const GLfloat* values)
840 ovr_glVertexAttrib4fv(indx, values);
844 coregl_api_glVertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void* ptr)
846 ovr_glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
850 coregl_api_glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
852 ovr_glViewport(x, y, width, height);