Dispatch GLES_CM entry functions to avoid resolving to the same symbol.
Bug 18752589
Change-Id: Idfaf9ad4764f8c2997250cac5233fcc75d94582a
Reviewed-on: https://swiftshader-review.googlesource.com/2963
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
diff --git a/src/OpenGL/libGLES_CM/libGLES_CM.cpp b/src/OpenGL/libGLES_CM/libGLES_CM.cpp
index e6845a6..10bdecb 100644
--- a/src/OpenGL/libGLES_CM/libGLES_CM.cpp
+++ b/src/OpenGL/libGLES_CM/libGLES_CM.cpp
@@ -21,7 +21,6 @@
#include "common/debug.h"
#include "Common/SharedLibrary.hpp"
#include "Common/Version.h"
-#include "Main/Register.hpp"
#include <EGL/egl.h>
#include <EGL/eglext.h>
@@ -31,7 +30,8 @@
#include <limits>
-using namespace es1;
+namespace es1
+{
static bool validImageSize(GLint level, GLsizei width, GLsizei height)
{
@@ -78,190 +78,7 @@
return true;
}
-extern "C"
-{
-
-EGLAPI EGLint EGLAPIENTRY eglGetError(void)
-{
- return libEGL->eglGetError();
-}
-
-EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id)
-{
- return libEGL->eglGetDisplay(display_id);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
-{
- return libEGL->eglInitialize(dpy, major, minor);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy)
-{
- return libEGL->eglTerminate(dpy);
-}
-
-EGLAPI const char *EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name)
-{
- return libEGL->eglQueryString(dpy, name);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config)
-{
- return libEGL->eglGetConfigs(dpy, configs, config_size, num_config);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config)
-{
- return libEGL->eglChooseConfig(dpy, attrib_list, configs, config_size, num_config);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value)
-{
- return libEGL->eglGetConfigAttrib(dpy, config, attribute, value);
-}
-
-EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType window, const EGLint *attrib_list)
-{
- return libEGL->eglCreateWindowSurface(dpy, config, window, attrib_list);
-}
-
-EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list)
-{
- return libEGL->eglCreatePbufferSurface(dpy, config, attrib_list);
-}
-
-EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list)
-{
- return libEGL->eglCreatePixmapSurface(dpy, config, pixmap, attrib_list);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
-{
- return libEGL->eglDestroySurface(dpy, surface);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value)
-{
- return libEGL->eglQuerySurface(dpy, surface, attribute, value);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api)
-{
- return libEGL->eglBindAPI(api);
-}
-
-EGLAPI EGLenum EGLAPIENTRY eglQueryAPI(void)
-{
- return libEGL->eglQueryAPI();
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient(void)
-{
- return libEGL->eglWaitClient();
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread(void)
-{
- return libEGL->eglReleaseThread();
-}
-
-EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list)
-{
- return libEGL->eglCreatePbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value)
-{
- return libEGL->eglSurfaceAttrib(dpy, surface, attribute, value);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
-{
- return libEGL->eglBindTexImage(dpy, surface, buffer);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
-{
- return libEGL->eglReleaseTexImage(dpy, surface, buffer);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval)
-{
- return libEGL->eglSwapInterval(dpy, interval);
-}
-
-EGLAPI EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list)
-{
- return libEGL->eglCreateContext(dpy, config, share_context, attrib_list);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
-{
- return libEGL->eglDestroyContext(dpy, ctx);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
-{
- return libEGL->eglMakeCurrent(dpy, draw, read, ctx);
-}
-
-EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext(void)
-{
- return libEGL->eglGetCurrentContext();
-}
-
-EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw)
-{
- return libEGL->eglGetCurrentSurface(readdraw);
-}
-
-EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay(void)
-{
- return libEGL->eglGetCurrentDisplay();
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value)
-{
- return libEGL->eglQueryContext(dpy, ctx, attribute, value);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL(void)
-{
- return libEGL->eglWaitGL();
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine)
-{
- return libEGL->eglWaitNative(engine);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface)
-{
- return libEGL->eglSwapBuffers(dpy, surface);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target)
-{
- return libEGL->eglCopyBuffers(dpy, surface, target);
-}
-
-EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
-{
- return libEGL->eglCreateImageKHR(dpy, ctx, target, buffer, attrib_list);
-}
-
-EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image)
-{
- return libEGL->eglDestroyImageKHR(dpy, image);
-}
-
-EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress(const char *procname)
-{
- return libEGL->eglGetProcAddress(procname);
-}
-
-GL_API void GL_APIENTRY glActiveTexture(GLenum texture)
+void ActiveTexture(GLenum texture)
{
TRACE("(GLenum texture = 0x%X)", texture);
@@ -278,17 +95,17 @@
}
}
-GL_API void GL_APIENTRY glAlphaFunc(GLenum func, GLclampf ref)
+void AlphaFunc(GLenum func, GLclampf ref)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glAlphaFuncx(GLenum func, GLclampx ref)
+void AlphaFuncx(GLenum func, GLclampx ref)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer)
+void BindBuffer(GLenum target, GLuint buffer)
{
TRACE("(GLenum target = 0x%X, GLuint buffer = %d)", target, buffer);
@@ -310,7 +127,7 @@
}
}
-GL_API void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer)
+void BindFramebuffer(GLenum target, GLuint framebuffer)
{
TRACE("(GLenum target = 0x%X, GLuint framebuffer = %d)", target, framebuffer);
@@ -327,7 +144,7 @@
}
}
-GL_API void GL_APIENTRY glBindFramebufferOES(GLenum target, GLuint framebuffer)
+void BindFramebufferOES(GLenum target, GLuint framebuffer)
{
TRACE("(GLenum target = 0x%X, GLuint framebuffer = %d)", target, framebuffer);
@@ -344,7 +161,7 @@
}
}
-GL_API void GL_APIENTRY glBindRenderbufferOES(GLenum target, GLuint renderbuffer)
+void BindRenderbufferOES(GLenum target, GLuint renderbuffer)
{
TRACE("(GLenum target = 0x%X, GLuint renderbuffer = %d)", target, renderbuffer);
@@ -370,7 +187,7 @@
}
}
-GL_API void GL_APIENTRY glBindTexture(GLenum target, GLuint texture)
+void BindTexture(GLenum target, GLuint texture)
{
TRACE("(GLenum target = 0x%X, GLuint texture = %d)", target, texture);
@@ -399,14 +216,14 @@
}
}
-GL_API void GL_APIENTRY glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha);
+void BlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha);
-GL_API void GL_APIENTRY glBlendEquationOES(GLenum mode)
+void BlendEquationOES(GLenum mode)
{
- glBlendEquationSeparateOES(mode, mode);
+ BlendEquationSeparateOES(mode, mode);
}
-GL_API void GL_APIENTRY glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha)
+void BlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha)
{
TRACE("(GLenum modeRGB = 0x%X, GLenum modeAlpha = 0x%X)", modeRGB, modeAlpha);
@@ -442,14 +259,14 @@
}
}
-GL_API void GL_APIENTRY glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+void BlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
-GL_API void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor)
+void BlendFunc(GLenum sfactor, GLenum dfactor)
{
- glBlendFuncSeparateOES(sfactor, dfactor, sfactor, dfactor);
+ BlendFuncSeparateOES(sfactor, dfactor, sfactor, dfactor);
}
-GL_API void GL_APIENTRY glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
+void BlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
{
TRACE("(GLenum srcRGB = 0x%X, GLenum dstRGB = 0x%X, GLenum srcAlpha = 0x%X, GLenum dstAlpha = 0x%X)",
srcRGB, dstRGB, srcAlpha, dstAlpha);
@@ -532,7 +349,7 @@
}
}
-GL_API void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+void BufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
{
size = static_cast<GLint>(size); // Work around issues with some 64-bit applications
@@ -580,7 +397,7 @@
}
}
-GL_API void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+void BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
{
size = static_cast<GLint>(size); // Work around issues with some 64-bit applications
offset = static_cast<GLint>(offset);
@@ -630,7 +447,7 @@
}
}
-GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES(GLenum target)
+GLenum CheckFramebufferStatusOES(GLenum target)
{
TRACE("(GLenum target = 0x%X)", target);
@@ -651,7 +468,7 @@
return 0;
}
-GL_API void GL_APIENTRY glClear(GLbitfield mask)
+void Clear(GLbitfield mask)
{
TRACE("(GLbitfield mask = %X)", mask);
@@ -668,7 +485,7 @@
}
}
-GL_API void GL_APIENTRY glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
{
TRACE("(GLclampf red = %f, GLclampf green = %f, GLclampf blue = %f, GLclampf alpha = %f)",
red, green, blue, alpha);
@@ -681,12 +498,12 @@
}
}
-GL_API void GL_APIENTRY glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
+void ClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glClearDepthf(GLclampf depth)
+void ClearDepthf(GLclampf depth)
{
TRACE("(GLclampf depth = %f)", depth);
@@ -698,12 +515,12 @@
}
}
-GL_API void GL_APIENTRY glClearDepthx(GLclampx depth)
+void ClearDepthx(GLclampx depth)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glClearStencil(GLint s)
+void ClearStencil(GLint s)
{
TRACE("(GLint s = %d)", s);
@@ -715,7 +532,7 @@
}
}
-GL_API void GL_APIENTRY glClientActiveTexture(GLenum texture)
+void ClientActiveTexture(GLenum texture)
{
TRACE("(GLenum texture = 0x%X)", texture);
@@ -736,17 +553,17 @@
}
}
-GL_API void GL_APIENTRY glClipPlanef(GLenum plane, const GLfloat *equation)
+void ClipPlanef(GLenum plane, const GLfloat *equation)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glClipPlanex(GLenum plane, const GLfixed *equation)
+void ClipPlanex(GLenum plane, const GLfixed *equation)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+void Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
{
TRACE("(GLfloat red = %f, GLfloat green = %f, GLfloat blue = %f, GLfloat alpha = %f)", red, green, blue, alpha);
@@ -758,17 +575,17 @@
}
}
-GL_API void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+void Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
+void Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+void ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
{
TRACE("(GLboolean red = %d, GLboolean green = %d, GLboolean blue = %d, GLboolean alpha = %d)",
red, green, blue, alpha);
@@ -781,7 +598,7 @@
}
}
-GL_API void GL_APIENTRY glVertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr)
+void VertexAttribPointer(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr)
{
TRACE("(GLuint index = %d, GLint size = %d, GLenum type = 0x%X, "
"GLboolean normalized = %d, GLsizei stride = %d, const GLvoid* ptr = %p)",
@@ -823,14 +640,14 @@
}
}
-GL_API void GL_APIENTRY glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+void ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
{
TRACE("(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", size, type, stride, pointer);
- glVertexAttribPointer(sw::Color0, size, type, false, stride, pointer);
+ VertexAttribPointer(sw::Color0, size, type, false, stride, pointer);
}
-GL_API void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
+void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
GLint border, GLsizei imageSize, const GLvoid* data)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, GLsizei width = %d, "
@@ -909,7 +726,7 @@
}
}
-GL_API void GL_APIENTRY glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+void CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
GLenum format, GLsizei imageSize, const GLvoid* data)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, "
@@ -980,7 +797,7 @@
}
}
-GL_API void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+void CopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLenum internalformat = 0x%X, "
"GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d, GLint border = %d)",
@@ -1095,7 +912,7 @@
}
}
-GL_API void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+void CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, "
"GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)",
@@ -1217,7 +1034,7 @@
}
}
-GL_API void GL_APIENTRY glCullFace(GLenum mode)
+void CullFace(GLenum mode)
{
TRACE("(GLenum mode = 0x%X)", mode);
@@ -1240,7 +1057,7 @@
}
}
-GL_API void GL_APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers)
+void DeleteBuffers(GLsizei n, const GLuint* buffers)
{
TRACE("(GLsizei n = %d, const GLuint* buffers = %p)", n, buffers);
@@ -1260,7 +1077,7 @@
}
}
-GL_API void GL_APIENTRY glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers)
+void DeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers)
{
TRACE("(GLsizei n = %d, const GLuint* framebuffers = %p)", n, framebuffers);
@@ -1283,7 +1100,7 @@
}
}
-GL_API void GL_APIENTRY glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers)
+void DeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers)
{
TRACE("(GLsizei n = %d, const GLuint* renderbuffers = %p)", n, renderbuffers);
@@ -1303,7 +1120,7 @@
}
}
-GL_API void GL_APIENTRY glDeleteTextures(GLsizei n, const GLuint* textures)
+void DeleteTextures(GLsizei n, const GLuint* textures)
{
TRACE("(GLsizei n = %d, const GLuint* textures = %p)", n, textures);
@@ -1326,7 +1143,7 @@
}
}
-GL_API void GL_APIENTRY glDepthFunc(GLenum func)
+void DepthFunc(GLenum func)
{
TRACE("(GLenum func = 0x%X)", func);
@@ -1353,7 +1170,7 @@
}
}
-GL_API void GL_APIENTRY glDepthMask(GLboolean flag)
+void DepthMask(GLboolean flag)
{
TRACE("(GLboolean flag = %d)", flag);
@@ -1365,12 +1182,12 @@
}
}
-GL_API void GL_APIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar)
+void DepthRangex(GLclampx zNear, GLclampx zFar)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar)
+void DepthRangef(GLclampf zNear, GLclampf zFar)
{
TRACE("(GLclampf zNear = %f, GLclampf zFar = %f)", zNear, zFar);
@@ -1382,7 +1199,7 @@
}
}
-GL_API void GL_APIENTRY glDisable(GLenum cap)
+void Disable(GLenum cap)
{
TRACE("(GLenum cap = 0x%X)", cap);
@@ -1431,7 +1248,7 @@
}
}
-GL_API void GL_APIENTRY glDisableClientState(GLenum array)
+void DisableClientState(GLenum array)
{
TRACE("(GLenum array = 0x%X)", array);
@@ -1452,7 +1269,7 @@
}
}
-GL_API void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count)
+void DrawArrays(GLenum mode, GLint first, GLsizei count)
{
TRACE("(GLenum mode = 0x%X, GLint first = %d, GLsizei count = %d)", mode, first, count);
@@ -1469,7 +1286,7 @@
}
}
-GL_API void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
+void DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
{
TRACE("(GLenum mode = 0x%X, GLsizei count = %d, GLenum type = 0x%X, const GLvoid* indices = %p)",
mode, count, type, indices);
@@ -1497,7 +1314,7 @@
}
}
-GL_API void GL_APIENTRY glEnable(GLenum cap)
+void Enable(GLenum cap)
{
TRACE("(GLenum cap = 0x%X)", cap);
@@ -1546,7 +1363,7 @@
}
}
-GL_API void GL_APIENTRY glEnableClientState(GLenum array)
+void EnableClientState(GLenum array)
{
TRACE("(GLenum array = 0x%X)", array);
@@ -1567,7 +1384,7 @@
}
}
-GL_API void GL_APIENTRY glFinish(void)
+void Finish(void)
{
TRACE("()");
@@ -1579,7 +1396,7 @@
}
}
-GL_API void GL_APIENTRY glFlush(void)
+void Flush(void)
{
TRACE("()");
@@ -1591,7 +1408,7 @@
}
}
-GL_API void GL_APIENTRY glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+void FramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
{
TRACE("(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum renderbuffertarget = 0x%X, "
"GLuint renderbuffer = %d)", target, attachment, renderbuffertarget, renderbuffer);
@@ -1630,7 +1447,7 @@
}
}
-GL_API void GL_APIENTRY glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+void FramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
{
TRACE("(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum textarget = 0x%X, "
"GLuint texture = %d, GLint level = %d)", target, attachment, textarget, texture, level);
@@ -1707,7 +1524,7 @@
}
}
-GL_API void GL_APIENTRY glFogf(GLenum pname, GLfloat param)
+void Fogf(GLenum pname, GLfloat param)
{
TRACE("(GLenum pname = 0x%X, GLfloat param = %f)", pname, param);
@@ -1753,7 +1570,7 @@
}
}
-GL_API void GL_APIENTRY glFogfv(GLenum pname, const GLfloat *params)
+void Fogfv(GLenum pname, const GLfloat *params)
{
TRACE("(GLenum pname = 0x%X, const GLfloat *params)", pname);
@@ -1803,17 +1620,17 @@
}
}
-GL_API void GL_APIENTRY glFogx(GLenum pname, GLfixed param)
+void Fogx(GLenum pname, GLfixed param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glFogxv(GLenum pname, const GLfixed *params)
+void Fogxv(GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glFrontFace(GLenum mode)
+void FrontFace(GLenum mode)
{
TRACE("(GLenum mode = 0x%X)", mode);
@@ -1835,7 +1652,7 @@
}
}
-GL_API void GL_APIENTRY glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+void Frustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
{
TRACE("(GLfloat left = %f, GLfloat right = %f, GLfloat bottom = %f, GLfloat top = %f, GLfloat zNear = %f, GLfloat zFar = %f)", left, right, bottom, top, zNear, zFar);
@@ -1847,12 +1664,12 @@
}
}
-GL_API void GL_APIENTRY glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+void Frustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGenerateMipmapOES(GLenum target)
+void GenerateMipmapOES(GLenum target)
{
TRACE("(GLenum target = 0x%X)", target);
@@ -1880,7 +1697,7 @@
}
}
-GL_API void GL_APIENTRY glGenBuffers(GLsizei n, GLuint* buffers)
+void GenBuffers(GLsizei n, GLuint* buffers)
{
TRACE("(GLsizei n = %d, GLuint* buffers = %p)", n, buffers);
@@ -1900,7 +1717,7 @@
}
}
-GL_API void GL_APIENTRY glGenFramebuffersOES(GLsizei n, GLuint* framebuffers)
+void GenFramebuffersOES(GLsizei n, GLuint* framebuffers)
{
TRACE("(GLsizei n = %d, GLuint* framebuffers = %p)", n, framebuffers);
@@ -1920,7 +1737,7 @@
}
}
-GL_API void GL_APIENTRY glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers)
+void GenRenderbuffersOES(GLsizei n, GLuint* renderbuffers)
{
TRACE("(GLsizei n = %d, GLuint* renderbuffers = %p)", n, renderbuffers);
@@ -1940,7 +1757,7 @@
}
}
-GL_API void GL_APIENTRY glGenTextures(GLsizei n, GLuint* textures)
+void GenTextures(GLsizei n, GLuint* textures)
{
TRACE("(GLsizei n = %d, GLuint* textures = %p)", n, textures);
@@ -1960,7 +1777,7 @@
}
}
-GL_API void GL_APIENTRY glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params)
+void GetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint* params = %p)", target, pname, params);
@@ -1997,7 +1814,7 @@
}
}
-GL_API void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params)
+void GetBooleanv(GLenum pname, GLboolean* params)
{
TRACE("(GLenum pname = 0x%X, GLboolean* params = %p)", pname, params);
@@ -2057,7 +1874,7 @@
}
}
-GL_API void GL_APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
+void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint* params = %p)", target, pname, params);
@@ -2099,36 +1916,36 @@
}
}
-GL_API void GL_APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4])
+void GetClipPlanef(GLenum pname, GLfloat eqn[4])
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4])
+void GetClipPlanex(GLenum pname, GLfixed eqn[4])
{
UNIMPLEMENTED();
}
-GL_API GLenum GL_APIENTRY glGetError(void)
+GLenum GetError(void)
{
TRACE("()");
-es1::Context *context = es1::getContext();
+ es1::Context *context = es1::getContext();
-if(context)
-{
- return context->getError();
+ if(context)
+ {
+ return context->getError();
+ }
+
+ return GL_NO_ERROR;
}
-return GL_NO_ERROR;
-}
-
-GL_API void GL_APIENTRY glGetFixedv(GLenum pname, GLfixed *params)
+void GetFixedv(GLenum pname, GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params)
+void GetFloatv(GLenum pname, GLfloat* params)
{
TRACE("(GLenum pname = 0x%X, GLfloat* params = %p)", pname, params);
@@ -2185,7 +2002,7 @@
}
}
-GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params)
+void GetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params)
{
TRACE("(GLenum target = 0x%X, GLenum attachment = 0x%X, GLenum pname = 0x%X, GLint* params = %p)",
target, attachment, pname, params);
@@ -2268,7 +2085,7 @@
}
}
-GL_API void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params)
+void GetIntegerv(GLenum pname, GLint* params)
{
TRACE("(GLenum pname = 0x%X, GLint* params = %p)", pname, params);
@@ -2332,32 +2149,32 @@
}
}
-GL_API void GL_APIENTRY glGetLightfv(GLenum light, GLenum pname, GLfloat *params)
+void GetLightfv(GLenum light, GLenum pname, GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetLightxv(GLenum light, GLenum pname, GLfixed *params)
+void GetLightxv(GLenum light, GLenum pname, GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
+void GetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetMaterialxv(GLenum face, GLenum pname, GLfixed *params)
+void GetMaterialxv(GLenum face, GLenum pname, GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetPointerv(GLenum pname, GLvoid **params)
+void GetPointerv(GLenum pname, GLvoid **params)
{
UNIMPLEMENTED();
}
-GL_API const GLubyte* GL_APIENTRY glGetString(GLenum name)
+const GLubyte* GetString(GLenum name)
{
TRACE("(GLenum name = 0x%X)", name);
@@ -2405,7 +2222,7 @@
}
}
-GL_API void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
+void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat* params = %p)", target, pname, params);
@@ -2453,7 +2270,7 @@
}
}
-GL_API void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
+void GetTexParameteriv(GLenum target, GLenum pname, GLint* params)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint* params = %p)", target, pname, params);
@@ -2501,27 +2318,27 @@
}
}
-GL_API void GL_APIENTRY glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params)
+void GetTexEnvfv(GLenum env, GLenum pname, GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetTexEnviv(GLenum env, GLenum pname, GLint *params)
+void GetTexEnviv(GLenum env, GLenum pname, GLint *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params)
+void GetTexEnvxv(GLenum env, GLenum pname, GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glGetTexParameterxv(GLenum target, GLenum pname, GLfixed *params)
+void GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glHint(GLenum target, GLenum mode)
+void Hint(GLenum target, GLenum mode)
{
TRACE("(GLenum target = 0x%X, GLenum mode = 0x%X)", target, mode);
@@ -2550,7 +2367,7 @@
}
}
-GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer)
+GLboolean IsBuffer(GLuint buffer)
{
TRACE("(GLuint buffer = %d)", buffer);
@@ -2569,7 +2386,7 @@
return GL_FALSE;
}
-GL_API GLboolean GL_APIENTRY glIsEnabled(GLenum cap)
+GLboolean IsEnabled(GLenum cap)
{
TRACE("(GLenum cap = 0x%X)", cap);
@@ -2596,7 +2413,7 @@
return GL_FALSE;
}
-GL_API GLboolean GL_APIENTRY glIsFramebufferOES(GLuint framebuffer)
+GLboolean IsFramebufferOES(GLuint framebuffer)
{
TRACE("(GLuint framebuffer = %d)", framebuffer);
@@ -2615,7 +2432,7 @@
return GL_FALSE;
}
-GL_API GLboolean GL_APIENTRY glIsTexture(GLuint texture)
+GLboolean IsTexture(GLuint texture)
{
TRACE("(GLuint texture = %d)", texture);
@@ -2634,7 +2451,7 @@
return GL_FALSE;
}
-GL_API GLboolean GL_APIENTRY glIsRenderbufferOES(GLuint renderbuffer)
+GLboolean IsRenderbufferOES(GLuint renderbuffer)
{
TRACE("(GLuint renderbuffer = %d)", renderbuffer);
@@ -2653,32 +2470,32 @@
return GL_FALSE;
}
-GL_API void GL_APIENTRY glLightModelf(GLenum pname, GLfloat param)
+void LightModelf(GLenum pname, GLfloat param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLightModelfv(GLenum pname, const GLfloat *params)
+void LightModelfv(GLenum pname, const GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLightModelx(GLenum pname, GLfixed param)
+void LightModelx(GLenum pname, GLfixed param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLightModelxv(GLenum pname, const GLfixed *params)
+void LightModelxv(GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLightf(GLenum light, GLenum pname, GLfloat param)
+void Lightf(GLenum light, GLenum pname, GLfloat param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLightfv(GLenum light, GLenum pname, const GLfloat *params)
+void Lightfv(GLenum light, GLenum pname, const GLfloat *params)
{
TRACE("(GLenum light = 0x%X, GLenum pname = 0x%X, const GLint *params)", light, pname);
@@ -2711,17 +2528,17 @@
}
}
-GL_API void GL_APIENTRY glLightx(GLenum light, GLenum pname, GLfixed param)
+void Lightx(GLenum light, GLenum pname, GLfixed param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLightxv(GLenum light, GLenum pname, const GLfixed *params)
+void Lightxv(GLenum light, GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLineWidth(GLfloat width)
+void LineWidth(GLfloat width)
{
TRACE("(GLfloat width = %f)", width);
@@ -2738,12 +2555,12 @@
}
}
-GL_API void GL_APIENTRY glLineWidthx(GLfixed width)
+void LineWidthx(GLfixed width)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLoadIdentity(void)
+void LoadIdentity(void)
{
TRACE("()");
@@ -2755,7 +2572,7 @@
}
}
-GL_API void GL_APIENTRY glLoadMatrixf(const GLfloat *m)
+void LoadMatrixf(const GLfloat *m)
{
TRACE("(const GLfloat *m)");
@@ -2767,37 +2584,37 @@
}
}
-GL_API void GL_APIENTRY glLoadMatrixx(const GLfixed *m)
+void LoadMatrixx(const GLfixed *m)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glLogicOp(GLenum opcode)
+void LogicOp(GLenum opcode)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMaterialf(GLenum face, GLenum pname, GLfloat param)
+void Materialf(GLenum face, GLenum pname, GLfloat param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
+void Materialfv(GLenum face, GLenum pname, const GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMaterialx(GLenum face, GLenum pname, GLfixed param)
+void Materialx(GLenum face, GLenum pname, GLfixed param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMaterialxv(GLenum face, GLenum pname, const GLfixed *params)
+void Materialxv(GLenum face, GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMatrixMode(GLenum mode)
+void MatrixMode(GLenum mode)
{
TRACE("(GLenum mode = 0x%X)", mode);
@@ -2809,7 +2626,7 @@
}
}
-GL_API void GL_APIENTRY glMultMatrixf(const GLfloat *m)
+void MultMatrixf(const GLfloat *m)
{
TRACE("(const GLfloat *m)");
@@ -2821,39 +2638,39 @@
}
}
-GL_API void GL_APIENTRY glMultMatrixx(const GLfixed *m)
+void MultMatrixx(const GLfixed *m)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+void MultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
+void MultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
+void Normal3f(GLfloat nx, GLfloat ny, GLfloat nz)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz)
+void Normal3x(GLfixed nx, GLfixed ny, GLfixed nz)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
+void NormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
{
TRACE("(GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", type, stride, pointer);
- glVertexAttribPointer(sw::Normal, 3, type, false, stride, pointer);
+ VertexAttribPointer(sw::Normal, 3, type, false, stride, pointer);
}
-GL_API void GL_APIENTRY glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+void Orthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
{
TRACE("(GLfloat left = %f, GLfloat right = %f, GLfloat bottom = %f, GLfloat top = %f, GLfloat zNear = %f, GLfloat zFar = %f)", left, right, bottom, top, zNear, zFar);
@@ -2865,12 +2682,12 @@
}
}
-GL_API void GL_APIENTRY glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+void Orthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPixelStorei(GLenum pname, GLint param)
+void PixelStorei(GLenum pname, GLint param)
{
TRACE("(GLenum pname = 0x%X, GLint param = %d)", pname, param);
@@ -2902,42 +2719,42 @@
}
}
-GL_API void GL_APIENTRY glPointParameterf(GLenum pname, GLfloat param)
+void PointParameterf(GLenum pname, GLfloat param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPointParameterfv(GLenum pname, const GLfloat *params)
+void PointParameterfv(GLenum pname, const GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPointParameterx(GLenum pname, GLfixed param)
+void PointParameterx(GLenum pname, GLfixed param)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPointParameterxv(GLenum pname, const GLfixed *params)
+void PointParameterxv(GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPointSize(GLfloat size)
+void PointSize(GLfloat size)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer)
+void PointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPointSizex(GLfixed size)
+void PointSizex(GLfixed size)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units)
+void PolygonOffset(GLfloat factor, GLfloat units)
{
TRACE("(GLfloat factor = %f, GLfloat units = %f)", factor, units);
@@ -2949,12 +2766,12 @@
}
}
-GL_API void GL_APIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units)
+void PolygonOffsetx(GLfixed factor, GLfixed units)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glPopMatrix(void)
+void PopMatrix(void)
{
TRACE("()");
@@ -2966,7 +2783,7 @@
}
}
-GL_API void GL_APIENTRY glPushMatrix(void)
+void PushMatrix(void)
{
TRACE("()");
@@ -2978,7 +2795,7 @@
}
}
-GL_API void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
+void ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
{
TRACE("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d, "
"GLenum format = 0x%X, GLenum type = 0x%X, GLvoid* pixels = %p)",
@@ -2997,7 +2814,7 @@
}
}
-GL_API void GL_APIENTRY glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
+void RenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
{
TRACE("(GLenum target = 0x%X, GLenum internalformat = 0x%X, GLsizei width = %d, GLsizei height = %d)",
target, internalformat, width, height);
@@ -3060,7 +2877,7 @@
}
}
-GL_API void GL_APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+void Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
{
TRACE("(GLfloat angle = %f, GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", angle, x, y, z);
@@ -3072,12 +2889,12 @@
}
}
-GL_API void GL_APIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
+void Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glSampleCoverage(GLclampf value, GLboolean invert)
+void SampleCoverage(GLclampf value, GLboolean invert)
{
TRACE("(GLclampf value = %f, GLboolean invert = %d)", value, invert);
@@ -3089,12 +2906,12 @@
}
}
-GL_API void GL_APIENTRY glSampleCoveragex(GLclampx value, GLboolean invert)
+void SampleCoveragex(GLclampx value, GLboolean invert)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z)
+void Scalef(GLfloat x, GLfloat y, GLfloat z)
{
TRACE("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", x, y, z);
@@ -3106,12 +2923,12 @@
}
}
-GL_API void GL_APIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z)
+void Scalex(GLfixed x, GLfixed y, GLfixed z)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
+void Scissor(GLint x, GLint y, GLsizei width, GLsizei height)
{
TRACE("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", x, y, width, height);
@@ -3128,7 +2945,7 @@
}
}
-GL_API void GL_APIENTRY glShadeModel(GLenum mode)
+void ShadeModel(GLenum mode)
{
switch(mode)
{
@@ -3147,7 +2964,7 @@
}
}
-GL_API void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask)
+void StencilFunc(GLenum func, GLint ref, GLuint mask)
{
TRACE("(GLenum func = 0x%X, GLint ref = %d, GLuint mask = %d)", func, ref, mask);
@@ -3174,7 +2991,7 @@
}
}
-GL_API void GL_APIENTRY glStencilMask(GLuint mask)
+void StencilMask(GLuint mask)
{
TRACE("(GLuint mask = %d)", mask);
@@ -3186,7 +3003,7 @@
}
}
-GL_API void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
+void StencilOp(GLenum fail, GLenum zfail, GLenum zpass)
{
TRACE("(GLenum fail = 0x%X, GLenum zfail = 0x%X, GLenum zpas = 0x%Xs)", fail, zfail, zpass);
@@ -3243,7 +3060,7 @@
}
}
-GL_API void GL_APIENTRY glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+void TexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
{
TRACE("(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", size, type, stride, pointer);
@@ -3253,21 +3070,23 @@
{
GLenum texture = context->getClientActiveTexture();
- glVertexAttribPointer(sw::TexCoord0 + (texture - GL_TEXTURE0), size, type, false, stride, pointer);
+ VertexAttribPointer(sw::TexCoord0 + (texture - GL_TEXTURE0), size, type, false, stride, pointer);
}
}
-GL_API void GL_APIENTRY glTexEnvf(GLenum target, GLenum pname, GLfloat param)
+void TexEnvi(GLenum target, GLenum pname, GLint param);
+
+void TexEnvf(GLenum target, GLenum pname, GLfloat param)
{
- glTexEnvi(target, pname, (GLint)param);
+ TexEnvi(target, pname, (GLint)param);
}
-GL_API void GL_APIENTRY glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
+void TexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glTexEnvi(GLenum target, GLenum pname, GLint param)
+void TexEnvi(GLenum target, GLenum pname, GLint param)
{
es1::Context *context = es1::getContext();
@@ -3351,22 +3170,22 @@
}
}
-GL_API void GL_APIENTRY glTexEnvx(GLenum target, GLenum pname, GLfixed param)
+void TexEnvx(GLenum target, GLenum pname, GLfixed param)
{
- glTexEnvi(target, pname, (GLint)param);
+ TexEnvi(target, pname, (GLint)param);
}
-GL_API void GL_APIENTRY glTexEnviv(GLenum target, GLenum pname, const GLint *params)
+void TexEnviv(GLenum target, GLenum pname, const GLint *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glTexEnvxv(GLenum target, GLenum pname, const GLfixed *params)
+void TexEnvxv(GLenum target, GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,
+void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,
GLint border, GLenum format, GLenum type, const GLvoid* pixels)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLint internalformat = %d, GLsizei width = %d, GLsizei height = %d, "
@@ -3491,7 +3310,7 @@
}
}
-GL_API void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param)
+void TexParameterf(GLenum target, GLenum pname, GLfloat param)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLfloat param = %f)", target, pname, param);
@@ -3551,12 +3370,12 @@
}
}
-GL_API void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
+void TexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
{
- glTexParameterf(target, pname, *params);
+ TexParameterf(target, pname, *params);
}
-GL_API void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param)
+void TexParameteri(GLenum target, GLenum pname, GLint param)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %d)", target, pname, param);
@@ -3616,7 +3435,7 @@
}
}
-GL_API void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
+void TexParameteriv(GLenum target, GLenum pname, const GLint* params)
{
TRACE("(GLenum target = 0x%X, GLenum pname = 0x%X, GLint param = %p)", target, pname, params);
@@ -3625,7 +3444,7 @@
case GL_TEXTURE_CROP_RECT_OES:
break;
default:
- return glTexParameteri(target, pname, params[0]);
+ return TexParameteri(target, pname, params[0]);
}
es1::Context *context = es1::getContext();
@@ -3654,17 +3473,17 @@
}
}
-GL_API void GL_APIENTRY glTexParameterx(GLenum target, GLenum pname, GLfixed param)
+void TexParameterx(GLenum target, GLenum pname, GLfixed param)
{
- glTexParameteri(target, pname, (GLint)param);
+ TexParameteri(target, pname, (GLint)param);
}
-GL_API void GL_APIENTRY glTexParameterxv(GLenum target, GLenum pname, const GLfixed *params)
+void TexParameterxv(GLenum target, GLenum pname, const GLfixed *params)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+void TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
GLenum format, GLenum type, const GLvoid* pixels)
{
TRACE("(GLenum target = 0x%X, GLint level = %d, GLint xoffset = %d, GLint yoffset = %d, "
@@ -3719,7 +3538,7 @@
}
}
-GL_API void GL_APIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z)
+void Translatef(GLfloat x, GLfloat y, GLfloat z)
{
TRACE("(GLfloat x = %f, GLfloat y = %f, GLfloat z = %f)", x, y, z);
@@ -3731,19 +3550,19 @@
}
}
-GL_API void GL_APIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z)
+void Translatex(GLfixed x, GLfixed y, GLfixed z)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+void VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
{
TRACE("(GLint size = %d, GLenum type = 0x%X, GLsizei stride = %d, const GLvoid *pointer = %p)", size, type, stride, pointer);
- glVertexAttribPointer(sw::Position, size, type, false, stride, pointer);
+ VertexAttribPointer(sw::Position, size, type, false, stride, pointer);
}
-GL_API void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
+void Viewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
TRACE("(GLint x = %d, GLint y = %d, GLsizei width = %d, GLsizei height = %d)", x, y, width, height);
@@ -3760,7 +3579,7 @@
}
}
-GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
+void EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
{
TRACE("(GLenum target = 0x%X, GLeglImageOES image = %p)", target, image);
@@ -3802,19 +3621,19 @@
}
}
-GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
+void EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
{
TRACE("(GLenum target = 0x%X, GLeglImageOES image = %p)", target, image);
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
+void DrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
+void DrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
{
TRACE("(GLint x = %d, GLint y = %d, GLint z = %d, GLint width = %d, GLint height = %d)", x, y, z, width, height);
@@ -3831,37 +3650,39 @@
}
}
-GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height)
+void DrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort *coords)
+void DrawTexsvOES(const GLshort *coords)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexivOES(const GLint *coords)
+void DrawTexivOES(const GLint *coords)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed *coords)
+void DrawTexxvOES(const GLfixed *coords)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
+void DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
{
UNIMPLEMENTED();
}
-GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat *coords)
+void DrawTexfvOES(const GLfloat *coords)
{
UNIMPLEMENTED();
}
-__eglMustCastToProperFunctionPointerType es1GetProcAddress(const char *procname)
+}
+
+extern "C" __eglMustCastToProperFunctionPointerType es1GetProcAddress(const char *procname)
{
struct Extension
{
@@ -3907,11 +3728,4 @@
}
return NULL;
-}
-
-void GL_APIENTRY Register(const char *licenseKey)
-{
- RegisterLicenseKey(licenseKey);
-}
-
-}
+}
diff --git a/src/OpenGL/libGLES_CM/libGLES_CM.hpp b/src/OpenGL/libGLES_CM/libGLES_CM.hpp
index c1122c4..08682a7 100644
--- a/src/OpenGL/libGLES_CM/libGLES_CM.hpp
+++ b/src/OpenGL/libGLES_CM/libGLES_CM.hpp
@@ -25,13 +25,190 @@
public:
LibGLES_CMexports();
+ void (*glActiveTexture)(GLenum texture);
+ void (*glAlphaFunc)(GLenum func, GLclampf ref);
+ void (*glAlphaFuncx)(GLenum func, GLclampx ref);
+ void (*glBindBuffer)(GLenum target, GLuint buffer);
+ void (*glBindFramebuffer)(GLenum target, GLuint framebuffer);
+ void (*glBindFramebufferOES)(GLenum target, GLuint framebuffer);
+ void (*glBindRenderbufferOES)(GLenum target, GLuint renderbuffer);
+ void (*glBindTexture)(GLenum target, GLuint texture);
+ void (*glBlendEquationOES)(GLenum mode);
+ void (*glBlendEquationSeparateOES)(GLenum modeRGB, GLenum modeAlpha);
+ void (*glBlendFunc)(GLenum sfactor, GLenum dfactor);
+ void (*glBlendFuncSeparateOES)(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+ void (*glBufferData)(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+ void (*glBufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+ GLenum (*glCheckFramebufferStatusOES)(GLenum target);
+ void (*glClear)(GLbitfield mask);
+ void (*glClearColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+ void (*glClearColorx)(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
+ void (*glClearDepthf)(GLclampf depth);
+ void (*glClearDepthx)(GLclampx depth);
+ void (*glClearStencil)(GLint s);
+ void (*glClientActiveTexture)(GLenum texture);
+ void (*glClipPlanef)(GLenum plane, const GLfloat *equation);
+ void (*glClipPlanex)(GLenum plane, const GLfixed *equation);
+ void (*glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+ void (*glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+ void (*glColor4x)(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+ void (*glColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+ void (*glColorPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+ void (*glCompressedTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
+ GLint border, GLsizei imageSize, const GLvoid* data);
+ void (*glCompressedTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+ GLenum format, GLsizei imageSize, const GLvoid* data);
+ void (*glCopyTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+ void (*glCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+ void (*glCullFace)(GLenum mode);
+ void (*glDeleteBuffers)(GLsizei n, const GLuint* buffers);
+ void (*glDeleteFramebuffersOES)(GLsizei n, const GLuint* framebuffers);
+ void (*glDeleteRenderbuffersOES)(GLsizei n, const GLuint* renderbuffers);
+ void (*glDeleteTextures)(GLsizei n, const GLuint* textures);
+ void (*glDepthFunc)(GLenum func);
+ void (*glDepthMask)(GLboolean flag);
+ void (*glDepthRangex)(GLclampx zNear, GLclampx zFar);
+ void (*glDepthRangef)(GLclampf zNear, GLclampf zFar);
+ void (*glDisable)(GLenum cap);
+ void (*glDisableClientState)(GLenum array);
+ void (*glDrawArrays)(GLenum mode, GLint first, GLsizei count);
+ void (*glDrawElements)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
+ void (*glEnable)(GLenum cap);
+ void (*glEnableClientState)(GLenum array);
+ void (*glFinish)(void);
+ void (*glFlush)(void);
+ void (*glFramebufferRenderbufferOES)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+ void (*glFramebufferTexture2DOES)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+ void (*glFogf)(GLenum pname, GLfloat param);
+ void (*glFogfv)(GLenum pname, const GLfloat *params);
+ void (*glFogx)(GLenum pname, GLfixed param);
+ void (*glFogxv)(GLenum pname, const GLfixed *params);
+ void (*glFrontFace)(GLenum mode);
+ void (*glFrustumf)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+ void (*glFrustumx)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+ void (*glGenerateMipmapOES)(GLenum target);
+ void (*glGenBuffers)(GLsizei n, GLuint* buffers);
+ void (*glGenFramebuffersOES)(GLsizei n, GLuint* framebuffers);
+ void (*glGenRenderbuffersOES)(GLsizei n, GLuint* renderbuffers);
+ void (*glGenTextures)(GLsizei n, GLuint* textures);
+ void (*glGetRenderbufferParameterivOES)(GLenum target, GLenum pname, GLint* params);
+ void (*glGetBooleanv)(GLenum pname, GLboolean* params);
+ void (*glGetBufferParameteriv)(GLenum target, GLenum pname, GLint* params);
+ void (*glGetClipPlanef)(GLenum pname, GLfloat eqn[4]);
+ void (*glGetClipPlanex)(GLenum pname, GLfixed eqn[4]);
+ GLenum (*glGetError)(void);
+ void (*glGetFixedv)(GLenum pname, GLfixed *params);
+ void (*glGetFloatv)(GLenum pname, GLfloat* params);
+ void (*glGetFramebufferAttachmentParameterivOES)(GLenum target, GLenum attachment, GLenum pname, GLint* params);
+ void (*glGetIntegerv)(GLenum pname, GLint* params);
+ void (*glGetLightfv)(GLenum light, GLenum pname, GLfloat *params);
+ void (*glGetLightxv)(GLenum light, GLenum pname, GLfixed *params);
+ void (*glGetMaterialfv)(GLenum face, GLenum pname, GLfloat *params);
+ void (*glGetMaterialxv)(GLenum face, GLenum pname, GLfixed *params);
+ void (*glGetPointerv)(GLenum pname, GLvoid **params);
+ const GLubyte* (*glGetString)(GLenum name);
+ void (*glGetTexParameterfv)(GLenum target, GLenum pname, GLfloat* params);
+ void (*glGetTexParameteriv)(GLenum target, GLenum pname, GLint* params);
+ void (*glGetTexEnvfv)(GLenum env, GLenum pname, GLfloat *params);
+ void (*glGetTexEnviv)(GLenum env, GLenum pname, GLint *params);
+ void (*glGetTexEnvxv)(GLenum env, GLenum pname, GLfixed *params);
+ void (*glGetTexParameterxv)(GLenum target, GLenum pname, GLfixed *params);
+ void (*glHint)(GLenum target, GLenum mode);
+ GLboolean (*glIsBuffer)(GLuint buffer);
+ GLboolean (*glIsEnabled)(GLenum cap);
+ GLboolean (*glIsFramebufferOES)(GLuint framebuffer);
+ GLboolean (*glIsTexture)(GLuint texture);
+ GLboolean (*glIsRenderbufferOES)(GLuint renderbuffer);
+ void (*glLightModelf)(GLenum pname, GLfloat param);
+ void (*glLightModelfv)(GLenum pname, const GLfloat *params);
+ void (*glLightModelx)(GLenum pname, GLfixed param);
+ void (*glLightModelxv)(GLenum pname, const GLfixed *params);
+ void (*glLightf)(GLenum light, GLenum pname, GLfloat param);
+ void (*glLightfv)(GLenum light, GLenum pname, const GLfloat *params);
+ void (*glLightx)(GLenum light, GLenum pname, GLfixed param);
+ void (*glLightxv)(GLenum light, GLenum pname, const GLfixed *params);
+ void (*glLineWidth)(GLfloat width);
+ void (*glLineWidthx)(GLfixed width);
+ void (*glLoadIdentity)(void);
+ void (*glLoadMatrixf)(const GLfloat *m);
+ void (*glLoadMatrixx)(const GLfixed *m);
+ void (*glLogicOp)(GLenum opcode);
+ void (*glMaterialf)(GLenum face, GLenum pname, GLfloat param);
+ void (*glMaterialfv)(GLenum face, GLenum pname, const GLfloat *params);
+ void (*glMaterialx)(GLenum face, GLenum pname, GLfixed param);
+ void (*glMaterialxv)(GLenum face, GLenum pname, const GLfixed *params);
+ void (*glMatrixMode)(GLenum mode);
+ void (*glMultMatrixf)(const GLfloat *m);
+ void (*glMultMatrixx)(const GLfixed *m);
+ void (*glMultiTexCoord4f)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+ void (*glMultiTexCoord4x)(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+ void (*glNormal3f)(GLfloat nx, GLfloat ny, GLfloat nz);
+ void (*glNormal3x)(GLfixed nx, GLfixed ny, GLfixed nz);
+ void (*glNormalPointer)(GLenum type, GLsizei stride, const GLvoid *pointer);
+ void (*glOrthof)(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+ void (*glOrthox)(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+ void (*glPixelStorei)(GLenum pname, GLint param);
+ void (*glPointParameterf)(GLenum pname, GLfloat param);
+ void (*glPointParameterfv)(GLenum pname, const GLfloat *params);
+ void (*glPointParameterx)(GLenum pname, GLfixed param);
+ void (*glPointParameterxv)(GLenum pname, const GLfixed *params);
+ void (*glPointSize)(GLfloat size);
+ void (*glPointSizePointerOES)(GLenum type, GLsizei stride, const GLvoid *pointer);
+ void (*glPointSizex)(GLfixed size);
+ void (*glPolygonOffset)(GLfloat factor, GLfloat units);
+ void (*glPolygonOffsetx)(GLfixed factor, GLfixed units);
+ void (*glPopMatrix)(void);
+ void (*glPushMatrix)(void);
+ void (*glReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
+ void (*glRenderbufferStorageOES)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+ void (*glRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+ void (*glRotatex)(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+ void (*glSampleCoverage)(GLclampf value, GLboolean invert);
+ void (*glSampleCoveragex)(GLclampx value, GLboolean invert);
+ void (*glScalef)(GLfloat x, GLfloat y, GLfloat z);
+ void (*glScalex)(GLfixed x, GLfixed y, GLfixed z);
+ void (*glScissor)(GLint x, GLint y, GLsizei width, GLsizei height);
+ void (*glShadeModel)(GLenum mode);
+ void (*glStencilFunc)(GLenum func, GLint ref, GLuint mask);
+ void (*glStencilMask)(GLuint mask);
+ void (*glStencilOp)(GLenum fail, GLenum zfail, GLenum zpass);
+ void (*glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+ void (*glTexEnvf)(GLenum target, GLenum pname, GLfloat param);
+ void (*glTexEnvfv)(GLenum target, GLenum pname, const GLfloat *params);
+ void (*glTexEnvi)(GLenum target, GLenum pname, GLint param);
+ void (*glTexEnvx)(GLenum target, GLenum pname, GLfixed param);
+ void (*glTexEnviv)(GLenum target, GLenum pname, const GLint *params);
+ void (*glTexEnvxv)(GLenum target, GLenum pname, const GLfixed *params);
+ void (*glTexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,
+ GLint border, GLenum format, GLenum type, const GLvoid* pixels);
+ void (*glTexParameterf)(GLenum target, GLenum pname, GLfloat param);
+ void (*glTexParameterfv)(GLenum target, GLenum pname, const GLfloat* params);
+ void (*glTexParameteri)(GLenum target, GLenum pname, GLint param);
+ void (*glTexParameteriv)(GLenum target, GLenum pname, const GLint* params);
+ void (*glTexParameterx)(GLenum target, GLenum pname, GLfixed param);
+ void (*glTexParameterxv)(GLenum target, GLenum pname, const GLfixed *params);
+ void (*glTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+ GLenum format, GLenum type, const GLvoid* pixels);
+ void (*glTranslatef)(GLfloat x, GLfloat y, GLfloat z);
+ void (*glTranslatex)(GLfixed x, GLfixed y, GLfixed z);
+ void (*glVertexPointer)(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+ void (*glViewport)(GLint x, GLint y, GLsizei width, GLsizei height);
+ void (*glEGLImageTargetTexture2DOES)(GLenum target, GLeglImageOES image);
+ void (*glEGLImageTargetRenderbufferStorageOES)(GLenum target, GLeglImageOES image);
+ void (*glDrawTexsOES)(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
+ void (*glDrawTexiOES)(GLint x, GLint y, GLint z, GLint width, GLint height);
+ void (*glDrawTexxOES)(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
+ void (*glDrawTexsvOES)(const GLshort *coords);
+ void (*glDrawTexivOES)(const GLint *coords);
+ void (*glDrawTexxvOES)(const GLfixed *coords);
+ void (*glDrawTexfOES)(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
+ void (*glDrawTexfvOES)(const GLfloat *coords);
+
egl::Context *(*es1CreateContext)(const egl::Config *config, const egl::Context *shareContext);
__eglMustCastToProperFunctionPointerType (*es1GetProcAddress)(const char *procname);
egl::Image *(*createBackBuffer)(int width, int height, const egl::Config *config);
egl::Image *(*createDepthStencil)(unsigned int width, unsigned int height, sw::Format format, int multiSampleDepth, bool discard);
sw::FrameBuffer *(*createFrameBuffer)(EGLNativeDisplayType display, EGLNativeWindowType window, int width, int height);
-
- void (GL_APIENTRY *glEGLImageTargetTexture2DOES)(GLenum target, GLeglImageOES image);
};
class LibGLES_CM
diff --git a/src/OpenGL/libGLES_CM/main.cpp b/src/OpenGL/libGLES_CM/main.cpp
index 5bf9377..f3de48a 100644
--- a/src/OpenGL/libGLES_CM/main.cpp
+++ b/src/OpenGL/libGLES_CM/main.cpp
@@ -19,6 +19,7 @@
#include "Common/Thread.hpp"
#include "Common/SharedLibrary.hpp"
#include "common/debug.h"
+#include "Main/Register.hpp"
#include <GLES/glext.h>
@@ -140,20 +141,1442 @@
}
}
+namespace es1
+{
+void ActiveTexture(GLenum texture);
+void AlphaFunc(GLenum func, GLclampf ref);
+void AlphaFuncx(GLenum func, GLclampx ref);
+void BindBuffer(GLenum target, GLuint buffer);
+void BindFramebuffer(GLenum target, GLuint framebuffer);
+void BindFramebufferOES(GLenum target, GLuint framebuffer);
+void BindRenderbufferOES(GLenum target, GLuint renderbuffer);
+void BindTexture(GLenum target, GLuint texture);
+void BlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha);
+void BlendEquationOES(GLenum mode);
+void BlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha);
+void BlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+void BlendFunc(GLenum sfactor, GLenum dfactor);
+void BlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
+void BufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage);
+void BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data);
+GLenum CheckFramebufferStatusOES(GLenum target);
+void Clear(GLbitfield mask);
+void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+void ClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha);
+void ClearDepthf(GLclampf depth);
+void ClearDepthx(GLclampx depth);
+void ClearStencil(GLint s);
+void ClientActiveTexture(GLenum texture);
+void ClipPlanef(GLenum plane, const GLfloat *equation);
+void ClipPlanex(GLenum plane, const GLfixed *equation);
+void Color4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+void Color4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+void Color4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha);
+void ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+void ColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
+ GLint border, GLsizei imageSize, const GLvoid* data);
+void CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+ GLenum format, GLsizei imageSize, const GLvoid* data);
+void CopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+void CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+void CullFace(GLenum mode);
+void DeleteBuffers(GLsizei n, const GLuint* buffers);
+void DeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers);
+void DeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers);
+void DeleteTextures(GLsizei n, const GLuint* textures);
+void DepthFunc(GLenum func);
+void DepthMask(GLboolean flag);
+void DepthRangex(GLclampx zNear, GLclampx zFar);
+void DepthRangef(GLclampf zNear, GLclampf zFar);
+void Disable(GLenum cap);
+void DisableClientState(GLenum array);
+void DrawArrays(GLenum mode, GLint first, GLsizei count);
+void DrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices);
+void Enable(GLenum cap);
+void EnableClientState(GLenum array);
+void Finish(void);
+void Flush(void);
+void FramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
+void FramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
+void Fogf(GLenum pname, GLfloat param);
+void Fogfv(GLenum pname, const GLfloat *params);
+void Fogx(GLenum pname, GLfixed param);
+void Fogxv(GLenum pname, const GLfixed *params);
+void FrontFace(GLenum mode);
+void Frustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+void Frustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+void GenerateMipmapOES(GLenum target);
+void GenBuffers(GLsizei n, GLuint* buffers);
+void GenFramebuffersOES(GLsizei n, GLuint* framebuffers);
+void GenRenderbuffersOES(GLsizei n, GLuint* renderbuffers);
+void GenTextures(GLsizei n, GLuint* textures);
+void GetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params);
+void GetBooleanv(GLenum pname, GLboolean* params);
+void GetBufferParameteriv(GLenum target, GLenum pname, GLint* params);
+void GetClipPlanef(GLenum pname, GLfloat eqn[4]);
+void GetClipPlanex(GLenum pname, GLfixed eqn[4]);
+GLenum GetError(void);
+void GetFixedv(GLenum pname, GLfixed *params);
+void GetFloatv(GLenum pname, GLfloat* params);
+void GetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params);
+void GetIntegerv(GLenum pname, GLint* params);
+void GetLightfv(GLenum light, GLenum pname, GLfloat *params);
+void GetLightxv(GLenum light, GLenum pname, GLfixed *params);
+void GetMaterialfv(GLenum face, GLenum pname, GLfloat *params);
+void GetMaterialxv(GLenum face, GLenum pname, GLfixed *params);
+void GetPointerv(GLenum pname, GLvoid **params);
+const GLubyte* GetString(GLenum name);
+void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params);
+void GetTexParameteriv(GLenum target, GLenum pname, GLint* params);
+void GetTexEnvfv(GLenum env, GLenum pname, GLfloat *params);
+void GetTexEnviv(GLenum env, GLenum pname, GLint *params);
+void GetTexEnvxv(GLenum env, GLenum pname, GLfixed *params);
+void GetTexParameterxv(GLenum target, GLenum pname, GLfixed *params);
+void Hint(GLenum target, GLenum mode);
+GLboolean IsBuffer(GLuint buffer);
+GLboolean IsEnabled(GLenum cap);
+GLboolean IsFramebufferOES(GLuint framebuffer);
+GLboolean IsTexture(GLuint texture);
+GLboolean IsRenderbufferOES(GLuint renderbuffer);
+void LightModelf(GLenum pname, GLfloat param);
+void LightModelfv(GLenum pname, const GLfloat *params);
+void LightModelx(GLenum pname, GLfixed param);
+void LightModelxv(GLenum pname, const GLfixed *params);
+void Lightf(GLenum light, GLenum pname, GLfloat param);
+void Lightfv(GLenum light, GLenum pname, const GLfloat *params);
+void Lightx(GLenum light, GLenum pname, GLfixed param);
+void Lightxv(GLenum light, GLenum pname, const GLfixed *params);
+void LineWidth(GLfloat width);
+void LineWidthx(GLfixed width);
+void LoadIdentity(void);
+void LoadMatrixf(const GLfloat *m);
+void LoadMatrixx(const GLfixed *m);
+void LogicOp(GLenum opcode);
+void Materialf(GLenum face, GLenum pname, GLfloat param);
+void Materialfv(GLenum face, GLenum pname, const GLfloat *params);
+void Materialx(GLenum face, GLenum pname, GLfixed param);
+void Materialxv(GLenum face, GLenum pname, const GLfixed *params);
+void MatrixMode(GLenum mode);
+void MultMatrixf(const GLfloat *m);
+void MultMatrixx(const GLfixed *m);
+void MultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+void MultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q);
+void Normal3f(GLfloat nx, GLfloat ny, GLfloat nz);
+void Normal3x(GLfixed nx, GLfixed ny, GLfixed nz);
+void NormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer);
+void Orthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar);
+void Orthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar);
+void PixelStorei(GLenum pname, GLint param);
+void PointParameterf(GLenum pname, GLfloat param);
+void PointParameterfv(GLenum pname, const GLfloat *params);
+void PointParameterx(GLenum pname, GLfixed param);
+void PointParameterxv(GLenum pname, const GLfixed *params);
+void PointSize(GLfloat size);
+void PointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer);
+void PointSizex(GLfixed size);
+void PolygonOffset(GLfloat factor, GLfloat units);
+void PolygonOffsetx(GLfixed factor, GLfixed units);
+void PopMatrix(void);
+void PushMatrix(void);
+void ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels);
+void RenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
+void Rotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+void Rotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z);
+void SampleCoverage(GLclampf value, GLboolean invert);
+void SampleCoveragex(GLclampx value, GLboolean invert);
+void Scalef(GLfloat x, GLfloat y, GLfloat z);
+void Scalex(GLfixed x, GLfixed y, GLfixed z);
+void Scissor(GLint x, GLint y, GLsizei width, GLsizei height);
+void ShadeModel(GLenum mode);
+void StencilFunc(GLenum func, GLint ref, GLuint mask);
+void StencilMask(GLuint mask);
+void StencilOp(GLenum fail, GLenum zfail, GLenum zpass);
+void TexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+void TexEnvf(GLenum target, GLenum pname, GLfloat param);
+void TexEnvfv(GLenum target, GLenum pname, const GLfloat *params);
+void TexEnvi(GLenum target, GLenum pname, GLint param);
+void TexEnvx(GLenum target, GLenum pname, GLfixed param);
+void TexEnviv(GLenum target, GLenum pname, const GLint *params);
+void TexEnvxv(GLenum target, GLenum pname, const GLfixed *params);
+void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,
+ GLint border, GLenum format, GLenum type, const GLvoid* pixels);
+void TexParameterf(GLenum target, GLenum pname, GLfloat param);
+void TexParameterfv(GLenum target, GLenum pname, const GLfloat* params);
+void TexParameteri(GLenum target, GLenum pname, GLint param);
+void TexParameteriv(GLenum target, GLenum pname, const GLint* params);
+void TexParameterx(GLenum target, GLenum pname, GLfixed param);
+void TexParameterxv(GLenum target, GLenum pname, const GLfixed *params);
+void TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+ GLenum format, GLenum type, const GLvoid* pixels);
+void Translatef(GLfloat x, GLfloat y, GLfloat z);
+void Translatex(GLfixed x, GLfixed y, GLfixed z);
+void VertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+void Viewport(GLint x, GLint y, GLsizei width, GLsizei height);
+void EGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image);
+void EGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image);
+void DrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height);
+void DrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height);
+void DrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height);
+void DrawTexsvOES(const GLshort *coords);
+void DrawTexivOES(const GLint *coords);
+void DrawTexxvOES(const GLfixed *coords);
+void DrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height);
+void DrawTexfvOES(const GLfloat *coords);
+}
+
egl::Context *es1CreateContext(const egl::Config *config, const egl::Context *shareContext);
extern "C" __eglMustCastToProperFunctionPointerType es1GetProcAddress(const char *procname);
egl::Image *createBackBuffer(int width, int height, const egl::Config *config);
egl::Image *createDepthStencil(unsigned int width, unsigned int height, sw::Format format, int multiSampleDepth, bool discard);
sw::FrameBuffer *createFrameBuffer(EGLNativeDisplayType display, EGLNativeWindowType window, int width, int height);
+extern "C"
+{
+EGLAPI EGLint EGLAPIENTRY eglGetError(void)
+{
+ return libEGL->eglGetError();
+}
+
+EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay(EGLNativeDisplayType display_id)
+{
+ return libEGL->eglGetDisplay(display_id);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
+{
+ return libEGL->eglInitialize(dpy, major, minor);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglTerminate(EGLDisplay dpy)
+{
+ return libEGL->eglTerminate(dpy);
+}
+
+EGLAPI const char *EGLAPIENTRY eglQueryString(EGLDisplay dpy, EGLint name)
+{
+ return libEGL->eglQueryString(dpy, name);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config)
+{
+ return libEGL->eglGetConfigs(dpy, configs, config_size, num_config);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config)
+{
+ return libEGL->eglChooseConfig(dpy, attrib_list, configs, config_size, num_config);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value)
+{
+ return libEGL->eglGetConfigAttrib(dpy, config, attribute, value);
+}
+
+EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType window, const EGLint *attrib_list)
+{
+ return libEGL->eglCreateWindowSurface(dpy, config, window, attrib_list);
+}
+
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list)
+{
+ return libEGL->eglCreatePbufferSurface(dpy, config, attrib_list);
+}
+
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list)
+{
+ return libEGL->eglCreatePixmapSurface(dpy, config, pixmap, attrib_list);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
+{
+ return libEGL->eglDestroySurface(dpy, surface);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value)
+{
+ return libEGL->eglQuerySurface(dpy, surface, attribute, value);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI(EGLenum api)
+{
+ return libEGL->eglBindAPI(api);
+}
+
+EGLAPI EGLenum EGLAPIENTRY eglQueryAPI(void)
+{
+ return libEGL->eglQueryAPI();
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient(void)
+{
+ return libEGL->eglWaitClient();
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread(void)
+{
+ return libEGL->eglReleaseThread();
+}
+
+EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list)
+{
+ return libEGL->eglCreatePbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value)
+{
+ return libEGL->eglSurfaceAttrib(dpy, surface, attribute, value);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
+{
+ return libEGL->eglBindTexImage(dpy, surface, buffer);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
+{
+ return libEGL->eglReleaseTexImage(dpy, surface, buffer);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval(EGLDisplay dpy, EGLint interval)
+{
+ return libEGL->eglSwapInterval(dpy, interval);
+}
+
+EGLAPI EGLContext EGLAPIENTRY eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list)
+{
+ return libEGL->eglCreateContext(dpy, config, share_context, attrib_list);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
+{
+ return libEGL->eglDestroyContext(dpy, ctx);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
+{
+ return libEGL->eglMakeCurrent(dpy, draw, read, ctx);
+}
+
+EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext(void)
+{
+ return libEGL->eglGetCurrentContext();
+}
+
+EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface(EGLint readdraw)
+{
+ return libEGL->eglGetCurrentSurface(readdraw);
+}
+
+EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay(void)
+{
+ return libEGL->eglGetCurrentDisplay();
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value)
+{
+ return libEGL->eglQueryContext(dpy, ctx, attribute, value);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL(void)
+{
+ return libEGL->eglWaitGL();
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative(EGLint engine)
+{
+ return libEGL->eglWaitNative(engine);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers(EGLDisplay dpy, EGLSurface surface)
+{
+ return libEGL->eglSwapBuffers(dpy, surface);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target)
+{
+ return libEGL->eglCopyBuffers(dpy, surface, target);
+}
+
+EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR(EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list)
+{
+ return libEGL->eglCreateImageKHR(dpy, ctx, target, buffer, attrib_list);
+}
+
+EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR image)
+{
+ return libEGL->eglDestroyImageKHR(dpy, image);
+}
+
+EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress(const char *procname)
+{
+ return libEGL->eglGetProcAddress(procname);
+}
+
+GL_API void GL_APIENTRY glActiveTexture(GLenum texture)
+{
+ return es1::ActiveTexture(texture);
+}
+
+GL_API void GL_APIENTRY glAlphaFunc(GLenum func, GLclampf ref)
+{
+ return es1::AlphaFunc(func, ref);
+}
+
+GL_API void GL_APIENTRY glAlphaFuncx(GLenum func, GLclampx ref)
+{
+ return es1::AlphaFuncx(func, ref);
+}
+
+GL_API void GL_APIENTRY glBindBuffer(GLenum target, GLuint buffer)
+{
+ return es1::BindBuffer(target, buffer);
+}
+
+GL_API void GL_APIENTRY glBindFramebuffer(GLenum target, GLuint framebuffer)
+{
+ return es1::BindFramebuffer(target, framebuffer);
+}
+
+GL_API void GL_APIENTRY glBindFramebufferOES(GLenum target, GLuint framebuffer)
+{
+ return es1::BindFramebufferOES(target, framebuffer);
+}
+
+GL_API void GL_APIENTRY glBindRenderbufferOES(GLenum target, GLuint renderbuffer)
+{
+ return es1::BindRenderbufferOES(target, renderbuffer);
+}
+
+GL_API void GL_APIENTRY glBindTexture(GLenum target, GLuint texture)
+{
+ return es1::BindTexture(target, texture);
+}
+
+GL_API void GL_APIENTRY glBlendEquationOES(GLenum mode)
+{
+ return es1::BlendEquationSeparateOES(mode, mode);
+}
+
+GL_API void GL_APIENTRY glBlendEquationSeparateOES(GLenum modeRGB, GLenum modeAlpha)
+{
+ return es1::BlendEquationSeparateOES(modeRGB, modeAlpha);
+}
+
+GL_API void GL_APIENTRY glBlendFunc(GLenum sfactor, GLenum dfactor)
+{
+ return es1::BlendFuncSeparateOES(sfactor, dfactor, sfactor, dfactor);
+}
+
+GL_API void GL_APIENTRY glBlendFuncSeparateOES(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha)
+{
+ return es1::BlendFuncSeparateOES(srcRGB, dstRGB, srcAlpha, dstAlpha);
+}
+
+GL_API void GL_APIENTRY glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage)
+{
+ return es1::BufferData(target, size, data, usage);
+}
+
+GL_API void GL_APIENTRY glBufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data)
+{
+ return es1::BufferSubData(target, offset, size, data);
+}
+
+GL_API GLenum GL_APIENTRY glCheckFramebufferStatusOES(GLenum target)
+{
+ return es1::CheckFramebufferStatusOES(target);
+}
+
+GL_API void GL_APIENTRY glClear(GLbitfield mask)
+{
+ return es1::Clear(mask);
+}
+
+GL_API void GL_APIENTRY glClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
+{
+ return es1::ClearColor(red, green, blue, alpha);
+}
+
+GL_API void GL_APIENTRY glClearColorx(GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha)
+{
+ return es1::ClearColorx(red, green, blue, alpha);
+}
+
+GL_API void GL_APIENTRY glClearDepthf(GLclampf depth)
+{
+ return es1::ClearDepthf(depth);
+}
+
+GL_API void GL_APIENTRY glClearDepthx(GLclampx depth)
+{
+ return es1::ClearDepthx(depth);
+}
+
+GL_API void GL_APIENTRY glClearStencil(GLint s)
+{
+ return es1::ClearStencil(s);
+}
+
+GL_API void GL_APIENTRY glClientActiveTexture(GLenum texture)
+{
+ return es1::ClientActiveTexture(texture);
+}
+
+GL_API void GL_APIENTRY glClipPlanef(GLenum plane, const GLfloat *equation)
+{
+ return es1::ClipPlanef(plane, equation);
+}
+
+GL_API void GL_APIENTRY glClipPlanex(GLenum plane, const GLfixed *equation)
+{
+ return es1::ClipPlanex(plane, equation);
+}
+
+GL_API void GL_APIENTRY glColor4f(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
+{
+ return es1::Color4f(red, green, blue, alpha);
+}
+
+GL_API void GL_APIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha)
+{
+ return es1::Color4ub(red, green, blue, alpha);
+}
+
+GL_API void GL_APIENTRY glColor4x(GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha)
+{
+ return es1::Color4x(red, green, blue, alpha);
+}
+
+GL_API void GL_APIENTRY glColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
+{
+ return es1::ColorMask(red, green, blue, alpha);
+}
+
+GL_API void GL_APIENTRY glColorPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+{
+ return es1::ColorPointer(size, type, stride, pointer);
+}
+
+GL_API void GL_APIENTRY glCompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height,
+ GLint border, GLsizei imageSize, const GLvoid* data)
+{
+ return es1::CompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
+}
+
+GL_API void GL_APIENTRY glCompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+ GLenum format, GLsizei imageSize, const GLvoid* data)
+{
+ return es1::CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
+}
+
+GL_API void GL_APIENTRY glCopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
+{
+ return es1::CopyTexImage2D(target, level, internalformat, x, y, width, height, border);
+}
+
+GL_API void GL_APIENTRY glCopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ return es1::CopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+
+GL_API void GL_APIENTRY glCullFace(GLenum mode)
+{
+ return es1::CullFace(mode);
+}
+
+GL_API void GL_APIENTRY glDeleteBuffers(GLsizei n, const GLuint* buffers)
+{
+ return es1::DeleteBuffers(n, buffers);
+}
+
+GL_API void GL_APIENTRY glDeleteFramebuffersOES(GLsizei n, const GLuint* framebuffers)
+{
+ return es1::DeleteFramebuffersOES(n, framebuffers);
+}
+
+GL_API void GL_APIENTRY glDeleteRenderbuffersOES(GLsizei n, const GLuint* renderbuffers)
+{
+ return es1::DeleteRenderbuffersOES(n, renderbuffers);
+}
+
+GL_API void GL_APIENTRY glDeleteTextures(GLsizei n, const GLuint* textures)
+{
+ return es1::DeleteTextures(n, textures);
+}
+
+GL_API void GL_APIENTRY glDepthFunc(GLenum func)
+{
+ return es1::DepthFunc(func);
+}
+
+GL_API void GL_APIENTRY glDepthMask(GLboolean flag)
+{
+ return es1::DepthMask(flag);
+}
+
+GL_API void GL_APIENTRY glDepthRangex(GLclampx zNear, GLclampx zFar)
+{
+ return es1::DepthRangex(zNear, zFar);
+}
+
+GL_API void GL_APIENTRY glDepthRangef(GLclampf zNear, GLclampf zFar)
+{
+ return es1::DepthRangef(zNear, zFar);
+}
+
+GL_API void GL_APIENTRY glDisable(GLenum cap)
+{
+ return es1::Disable(cap);
+}
+
+GL_API void GL_APIENTRY glDisableClientState(GLenum array)
+{
+ return es1::DisableClientState(array);
+}
+
+GL_API void GL_APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count)
+{
+ return es1::DrawArrays(mode, first, count);
+}
+
+GL_API void GL_APIENTRY glDrawElements(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices)
+{
+ return es1::DrawElements(mode, count, type, indices);
+}
+
+GL_API void GL_APIENTRY glEnable(GLenum cap)
+{
+ return es1::Enable(cap);
+}
+
+GL_API void GL_APIENTRY glEnableClientState(GLenum array)
+{
+ return es1::EnableClientState(array);
+}
+
+GL_API void GL_APIENTRY glFinish(void)
+{
+ return es1::Finish();
+}
+
+GL_API void GL_APIENTRY glFlush(void)
+{
+ return es1::Flush();
+}
+
+GL_API void GL_APIENTRY glFramebufferRenderbufferOES(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
+{
+ return es1::FramebufferRenderbufferOES(target, attachment, renderbuffertarget, renderbuffer);
+}
+
+GL_API void GL_APIENTRY glFramebufferTexture2DOES(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
+{
+ return es1::FramebufferTexture2DOES(target, attachment, textarget, texture, level);
+}
+
+GL_API void GL_APIENTRY glFogf(GLenum pname, GLfloat param)
+{
+ return es1::Fogf(pname, param);
+}
+
+GL_API void GL_APIENTRY glFogfv(GLenum pname, const GLfloat *params)
+{
+ return es1::Fogfv(pname, params);
+}
+
+GL_API void GL_APIENTRY glFogx(GLenum pname, GLfixed param)
+{
+ return es1::Fogx(pname, param);
+}
+
+GL_API void GL_APIENTRY glFogxv(GLenum pname, const GLfixed *params)
+{
+ return es1::Fogxv(pname, params);
+}
+
+GL_API void GL_APIENTRY glFrontFace(GLenum mode)
+{
+ return es1::FrontFace(mode);
+}
+
+GL_API void GL_APIENTRY glFrustumf(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ return es1::Frustumf(left, right, bottom, top, zNear, zFar);
+}
+
+GL_API void GL_APIENTRY glFrustumx(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ return es1::Frustumx(left, right, bottom, top, zNear, zFar);
+}
+
+GL_API void GL_APIENTRY glGenerateMipmapOES(GLenum target)
+{
+ return es1::GenerateMipmapOES(target);
+}
+
+GL_API void GL_APIENTRY glGenBuffers(GLsizei n, GLuint* buffers)
+{
+ return es1::GenBuffers(n, buffers);
+}
+
+GL_API void GL_APIENTRY glGenFramebuffersOES(GLsizei n, GLuint* framebuffers)
+{
+ return es1::GenFramebuffersOES(n, framebuffers);
+}
+
+GL_API void GL_APIENTRY glGenRenderbuffersOES(GLsizei n, GLuint* renderbuffers)
+{
+ return es1::GenRenderbuffersOES(n, renderbuffers);
+}
+
+GL_API void GL_APIENTRY glGenTextures(GLsizei n, GLuint* textures)
+{
+ return es1::GenTextures(n, textures);
+}
+
+GL_API void GL_APIENTRY glGetRenderbufferParameterivOES(GLenum target, GLenum pname, GLint* params)
+{
+ return es1::GetRenderbufferParameterivOES(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetBooleanv(GLenum pname, GLboolean* params)
+{
+ return es1::GetBooleanv(pname, params);
+}
+
+GL_API void GL_APIENTRY glGetBufferParameteriv(GLenum target, GLenum pname, GLint* params)
+{
+ return es1::GetBufferParameteriv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetClipPlanef(GLenum pname, GLfloat eqn[4])
+{
+ return es1::GetClipPlanef(pname, eqn);
+}
+
+GL_API void GL_APIENTRY glGetClipPlanex(GLenum pname, GLfixed eqn[4])
+{
+ return es1::GetClipPlanex(pname, eqn);
+}
+
+GL_API GLenum GL_APIENTRY glGetError(void)
+{
+ return es1::GetError();
+}
+
+GL_API void GL_APIENTRY glGetFixedv(GLenum pname, GLfixed *params)
+{
+ return es1::GetFixedv(pname, params);
+}
+
+GL_API void GL_APIENTRY glGetFloatv(GLenum pname, GLfloat* params)
+{
+ return es1::GetFloatv(pname, params);
+}
+
+GL_API void GL_APIENTRY glGetFramebufferAttachmentParameterivOES(GLenum target, GLenum attachment, GLenum pname, GLint* params)
+{
+ return es1::GetFramebufferAttachmentParameterivOES(target, attachment, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetIntegerv(GLenum pname, GLint* params)
+{
+ return es1::GetIntegerv(pname, params);
+}
+
+GL_API void GL_APIENTRY glGetLightfv(GLenum light, GLenum pname, GLfloat *params)
+{
+ return es1::GetLightfv(light, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetLightxv(GLenum light, GLenum pname, GLfixed *params)
+{
+ return es1::GetLightxv(light, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetMaterialfv(GLenum face, GLenum pname, GLfloat *params)
+{
+ return es1::GetMaterialfv(face, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetMaterialxv(GLenum face, GLenum pname, GLfixed *params)
+{
+ return es1::GetMaterialxv(face, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetPointerv(GLenum pname, GLvoid **params)
+{
+ return es1::GetPointerv(pname, params);
+}
+
+GL_API const GLubyte* GL_APIENTRY glGetString(GLenum name)
+{
+ return es1::GetString(name);
+}
+
+GL_API void GL_APIENTRY glGetTexParameterfv(GLenum target, GLenum pname, GLfloat* params)
+{
+ return es1::GetTexParameterfv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetTexParameteriv(GLenum target, GLenum pname, GLint* params)
+{
+ return es1::GetTexParameteriv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params)
+{
+ return es1::GetTexEnvfv(env, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetTexEnviv(GLenum env, GLenum pname, GLint *params)
+{
+ return es1::GetTexEnviv(env, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params)
+{
+ return es1::GetTexEnvxv(env, pname, params);
+}
+
+GL_API void GL_APIENTRY glGetTexParameterxv(GLenum target, GLenum pname, GLfixed *params)
+{
+ return es1::GetTexParameterxv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glHint(GLenum target, GLenum mode)
+{
+ return es1::Hint(target, mode);
+}
+
+GL_API GLboolean GL_APIENTRY glIsBuffer(GLuint buffer)
+{
+ return es1::IsBuffer(buffer);
+}
+
+GL_API GLboolean GL_APIENTRY glIsEnabled(GLenum cap)
+{
+ return es1::IsEnabled(cap);
+}
+
+GL_API GLboolean GL_APIENTRY glIsFramebufferOES(GLuint framebuffer)
+{
+ return es1::IsFramebufferOES(framebuffer);
+}
+
+GL_API GLboolean GL_APIENTRY glIsTexture(GLuint texture)
+{
+ return es1::IsTexture(texture);
+}
+
+GL_API GLboolean GL_APIENTRY glIsRenderbufferOES(GLuint renderbuffer)
+{
+ return es1::IsRenderbufferOES(renderbuffer);
+}
+
+GL_API void GL_APIENTRY glLightModelf(GLenum pname, GLfloat param)
+{
+ return es1::LightModelf(pname, param);
+}
+
+GL_API void GL_APIENTRY glLightModelfv(GLenum pname, const GLfloat *params)
+{
+ return es1::LightModelfv(pname, params);
+}
+
+GL_API void GL_APIENTRY glLightModelx(GLenum pname, GLfixed param)
+{
+ return es1::LightModelx(pname, param);
+}
+
+GL_API void GL_APIENTRY glLightModelxv(GLenum pname, const GLfixed *params)
+{
+ return es1::LightModelxv(pname, params);
+}
+
+GL_API void GL_APIENTRY glLightf(GLenum light, GLenum pname, GLfloat param)
+{
+ return es1::Lightf(light, pname, param);
+}
+
+GL_API void GL_APIENTRY glLightfv(GLenum light, GLenum pname, const GLfloat *params)
+{
+ return es1::Lightfv(light, pname, params);
+}
+
+GL_API void GL_APIENTRY glLightx(GLenum light, GLenum pname, GLfixed param)
+{
+ return es1::Lightx(light, pname, param);
+}
+
+GL_API void GL_APIENTRY glLightxv(GLenum light, GLenum pname, const GLfixed *params)
+{
+ return es1::Lightxv(light, pname, params);
+}
+
+GL_API void GL_APIENTRY glLineWidth(GLfloat width)
+{
+ return es1::LineWidth(width);
+}
+
+GL_API void GL_APIENTRY glLineWidthx(GLfixed width)
+{
+ return es1::LineWidthx(width);
+}
+
+GL_API void GL_APIENTRY glLoadIdentity(void)
+{
+ return es1::LoadIdentity();
+}
+
+GL_API void GL_APIENTRY glLoadMatrixf(const GLfloat *m)
+{
+ return es1::LoadMatrixf(m);
+}
+
+GL_API void GL_APIENTRY glLoadMatrixx(const GLfixed *m)
+{
+ return es1::LoadMatrixx(m);
+}
+
+GL_API void GL_APIENTRY glLogicOp(GLenum opcode)
+{
+ return es1::LogicOp(opcode);
+}
+
+GL_API void GL_APIENTRY glMaterialf(GLenum face, GLenum pname, GLfloat param)
+{
+ return es1::Materialf(face, pname, param);
+}
+
+GL_API void GL_APIENTRY glMaterialfv(GLenum face, GLenum pname, const GLfloat *params)
+{
+ return es1::Materialfv(face, pname, params);
+}
+
+GL_API void GL_APIENTRY glMaterialx(GLenum face, GLenum pname, GLfixed param)
+{
+ return es1::Materialx(face, pname, param);
+}
+
+GL_API void GL_APIENTRY glMaterialxv(GLenum face, GLenum pname, const GLfixed *params)
+{
+ return es1::Materialxv(face, pname, params);
+}
+
+GL_API void GL_APIENTRY glMatrixMode(GLenum mode)
+{
+ return es1::MatrixMode(mode);
+}
+
+GL_API void GL_APIENTRY glMultMatrixf(const GLfloat *m)
+{
+ return es1::MultMatrixf(m);
+}
+
+GL_API void GL_APIENTRY glMultMatrixx(const GLfixed *m)
+{
+ return es1::MultMatrixx(m);
+}
+
+GL_API void GL_APIENTRY glMultiTexCoord4f(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
+{
+ return es1::MultiTexCoord4f(target, s, t, r, q);
+}
+
+GL_API void GL_APIENTRY glMultiTexCoord4x(GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q)
+{
+ return es1::MultiTexCoord4x(target, s, t, r, q);
+}
+
+GL_API void GL_APIENTRY glNormal3f(GLfloat nx, GLfloat ny, GLfloat nz)
+{
+ return es1::Normal3f(nx, ny, nz);
+}
+
+GL_API void GL_APIENTRY glNormal3x(GLfixed nx, GLfixed ny, GLfixed nz)
+{
+ return es1::Normal3x(nx, ny, nz);
+}
+
+GL_API void GL_APIENTRY glNormalPointer(GLenum type, GLsizei stride, const GLvoid *pointer)
+{
+ return es1::NormalPointer(type, stride, pointer);
+}
+
+GL_API void GL_APIENTRY glOrthof(GLfloat left, GLfloat right, GLfloat bottom, GLfloat top, GLfloat zNear, GLfloat zFar)
+{
+ return es1::Orthof(left, right, bottom, top, zNear, zFar);
+}
+
+GL_API void GL_APIENTRY glOrthox(GLfixed left, GLfixed right, GLfixed bottom, GLfixed top, GLfixed zNear, GLfixed zFar)
+{
+ return es1::Orthox(left, right, bottom, top, zNear, zFar);
+}
+
+GL_API void GL_APIENTRY glPixelStorei(GLenum pname, GLint param)
+{
+ return es1::PixelStorei(pname, param);
+}
+
+GL_API void GL_APIENTRY glPointParameterf(GLenum pname, GLfloat param)
+{
+ return es1::PointParameterf(pname, param);
+}
+
+GL_API void GL_APIENTRY glPointParameterfv(GLenum pname, const GLfloat *params)
+{
+ return es1::PointParameterfv(pname, params);
+}
+
+GL_API void GL_APIENTRY glPointParameterx(GLenum pname, GLfixed param)
+{
+ return es1::PointParameterx(pname, param);
+}
+
+GL_API void GL_APIENTRY glPointParameterxv(GLenum pname, const GLfixed *params)
+{
+ return es1::PointParameterxv(pname, params);
+}
+
+GL_API void GL_APIENTRY glPointSize(GLfloat size)
+{
+ return es1::PointSize(size);
+}
+
+GL_API void GL_APIENTRY glPointSizePointerOES(GLenum type, GLsizei stride, const GLvoid *pointer)
+{
+ return es1::PointSizePointerOES(type, stride, pointer);
+}
+
+GL_API void GL_APIENTRY glPointSizex(GLfixed size)
+{
+ return es1::PointSizex(size);
+}
+
+GL_API void GL_APIENTRY glPolygonOffset(GLfloat factor, GLfloat units)
+{
+ return es1::PolygonOffset(factor, units);
+}
+
+GL_API void GL_APIENTRY glPolygonOffsetx(GLfixed factor, GLfixed units)
+{
+ return es1::PolygonOffsetx(factor, units);
+}
+
+GL_API void GL_APIENTRY glPopMatrix(void)
+{
+ return es1::PopMatrix();
+}
+
+GL_API void GL_APIENTRY glPushMatrix(void)
+{
+ return es1::PushMatrix();
+}
+
+GL_API void GL_APIENTRY glReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels)
+{
+ return es1::ReadPixels(x, y, width, height, format, type, pixels);
+}
+
+GL_API void GL_APIENTRY glRenderbufferStorageOES(GLenum target, GLenum internalformat, GLsizei width, GLsizei height)
+{
+ return es1::RenderbufferStorageOES(target, internalformat, width, height);
+}
+
+GL_API void GL_APIENTRY glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
+{
+ return es1::Rotatef(angle, x, y, z);
+}
+
+GL_API void GL_APIENTRY glRotatex(GLfixed angle, GLfixed x, GLfixed y, GLfixed z)
+{
+ return es1::Rotatex(angle, x, y, z);
+}
+
+GL_API void GL_APIENTRY glSampleCoverage(GLclampf value, GLboolean invert)
+{
+ return es1::SampleCoverage(value, invert);
+}
+
+GL_API void GL_APIENTRY glSampleCoveragex(GLclampx value, GLboolean invert)
+{
+ return es1::SampleCoveragex(value, invert);
+}
+
+GL_API void GL_APIENTRY glScalef(GLfloat x, GLfloat y, GLfloat z)
+{
+ return es1::Scalef(x, y, z);
+}
+
+GL_API void GL_APIENTRY glScalex(GLfixed x, GLfixed y, GLfixed z)
+{
+ return es1::Scalex(x, y, z);
+}
+
+GL_API void GL_APIENTRY glScissor(GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ return es1::Scissor(x, y, width, height);
+}
+
+GL_API void GL_APIENTRY glShadeModel(GLenum mode)
+{
+ return es1::ShadeModel(mode);
+}
+
+GL_API void GL_APIENTRY glStencilFunc(GLenum func, GLint ref, GLuint mask)
+{
+ return es1::StencilFunc(func, ref, mask);
+}
+
+GL_API void GL_APIENTRY glStencilMask(GLuint mask)
+{
+ return es1::StencilMask(mask);
+}
+
+GL_API void GL_APIENTRY glStencilOp(GLenum fail, GLenum zfail, GLenum zpass)
+{
+ return es1::StencilOp(fail, zfail, zpass);
+}
+
+GL_API void GL_APIENTRY glTexCoordPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+{
+ return es1::TexCoordPointer(size, type, stride, pointer);
+}
+
+GL_API void GL_APIENTRY glTexEnvf(GLenum target, GLenum pname, GLfloat param)
+{
+ return es1::TexEnvf(target, pname, param);
+}
+
+GL_API void GL_APIENTRY glTexEnvfv(GLenum target, GLenum pname, const GLfloat *params)
+{
+ return es1::TexEnvfv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glTexEnvi(GLenum target, GLenum pname, GLint param)
+{
+ return es1::TexEnvi(target, pname, param);
+}
+
+GL_API void GL_APIENTRY glTexEnvx(GLenum target, GLenum pname, GLfixed param)
+{
+ return es1::TexEnvx(target, pname, param);
+}
+
+GL_API void GL_APIENTRY glTexEnviv(GLenum target, GLenum pname, const GLint *params)
+{
+ return es1::TexEnviv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glTexEnvxv(GLenum target, GLenum pname, const GLfixed *params)
+{
+ return es1::TexEnvxv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height,
+ GLint border, GLenum format, GLenum type, const GLvoid* pixels)
+{
+ return es1::TexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
+}
+
+GL_API void GL_APIENTRY glTexParameterf(GLenum target, GLenum pname, GLfloat param)
+{
+ return es1::TexParameterf(target, pname, param);
+}
+
+GL_API void GL_APIENTRY glTexParameterfv(GLenum target, GLenum pname, const GLfloat* params)
+{
+ return es1::TexParameterfv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param)
+{
+ return es1::TexParameteri(target, pname, param);
+}
+
+GL_API void GL_APIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint* params)
+{
+ return es1::TexParameteriv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glTexParameterx(GLenum target, GLenum pname, GLfixed param)
+{
+ return es1::TexParameterx(target, pname, param);
+}
+
+GL_API void GL_APIENTRY glTexParameterxv(GLenum target, GLenum pname, const GLfixed *params)
+{
+ return es1::TexParameterxv(target, pname, params);
+}
+
+GL_API void GL_APIENTRY glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height,
+ GLenum format, GLenum type, const GLvoid* pixels)
+{
+ return es1::TexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
+}
+
+GL_API void GL_APIENTRY glTranslatef(GLfloat x, GLfloat y, GLfloat z)
+{
+ return es1::Translatef(x, y, z);
+}
+
+GL_API void GL_APIENTRY glTranslatex(GLfixed x, GLfixed y, GLfixed z)
+{
+ return es1::Translatex(x, y, z);
+}
+
+GL_API void GL_APIENTRY glVertexPointer(GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
+{
+ return es1::VertexPointer(size, type, stride, pointer);
+}
+
+GL_API void GL_APIENTRY glViewport(GLint x, GLint y, GLsizei width, GLsizei height)
+{
+ return es1::Viewport(x, y, width, height);
+}
+
+GL_API void GL_APIENTRY glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image)
+{
+ return es1::EGLImageTargetTexture2DOES(target, image);
+}
+
+GL_API void GL_APIENTRY glEGLImageTargetRenderbufferStorageOES(GLenum target, GLeglImageOES image)
+{
+ return es1::EGLImageTargetRenderbufferStorageOES(target, image);
+}
+
+GL_API void GL_APIENTRY glDrawTexsOES(GLshort x, GLshort y, GLshort z, GLshort width, GLshort height)
+{
+ return es1::DrawTexsOES(x,y, z, width, height);
+}
+
+GL_API void GL_APIENTRY glDrawTexiOES(GLint x, GLint y, GLint z, GLint width, GLint height)
+{
+ return es1::DrawTexiOES(x,y, z, width, height);
+}
+
+GL_API void GL_APIENTRY glDrawTexxOES(GLfixed x, GLfixed y, GLfixed z, GLfixed width, GLfixed height)
+{
+ return es1::DrawTexxOES(x,y, z, width, height);
+}
+
+GL_API void GL_APIENTRY glDrawTexsvOES(const GLshort *coords)
+{
+ return es1::DrawTexsvOES(coords);
+}
+
+GL_API void GL_APIENTRY glDrawTexivOES(const GLint *coords)
+{
+ return es1::DrawTexivOES(coords);
+}
+
+GL_API void GL_APIENTRY glDrawTexxvOES(const GLfixed *coords)
+{
+ return es1::DrawTexxvOES(coords);
+}
+
+GL_API void GL_APIENTRY glDrawTexfOES(GLfloat x, GLfloat y, GLfloat z, GLfloat width, GLfloat height)
+{
+ return es1::DrawTexfOES(x, y, z, width, height);
+}
+
+GL_API void GL_APIENTRY glDrawTexfvOES(const GLfloat *coords)
+{
+ return es1::DrawTexfvOES(coords);
+}
+
+void GL_APIENTRY Register(const char *licenseKey)
+{
+ RegisterLicenseKey(licenseKey);
+}
+}
+
LibGLES_CMexports::LibGLES_CMexports()
{
+ this->glActiveTexture = es1::ActiveTexture;
+ this->glAlphaFunc = es1::AlphaFunc;
+ this->glAlphaFuncx = es1::AlphaFuncx;
+ this->glBindBuffer = es1::BindBuffer;
+ this->glBindFramebuffer = es1::BindFramebuffer;
+ this->glBindFramebufferOES = es1::BindFramebufferOES;
+ this->glBindRenderbufferOES = es1::BindRenderbufferOES;
+ this->glBindTexture = es1::BindTexture;
+ this->glBlendEquationSeparateOES = es1::BlendEquationSeparateOES;
+ this->glBlendEquationOES = es1::BlendEquationOES;
+ this->glBlendEquationSeparateOES = es1::BlendEquationSeparateOES;
+ this->glBlendFuncSeparateOES = es1::BlendFuncSeparateOES;
+ this->glBlendFunc = es1::BlendFunc;
+ this->glBlendFuncSeparateOES = es1::BlendFuncSeparateOES;
+ this->glBufferData = es1::BufferData;
+ this->glBufferSubData = es1::BufferSubData;
+ this->glCheckFramebufferStatusOES = es1::CheckFramebufferStatusOES;
+ this->glClear = es1::Clear;
+ this->glClearColor = es1::ClearColor;
+ this->glClearColorx = es1::ClearColorx;
+ this->glClearDepthf = es1::ClearDepthf;
+ this->glClearDepthx = es1::ClearDepthx;
+ this->glClearStencil = es1::ClearStencil;
+ this->glClientActiveTexture = es1::ClientActiveTexture;
+ this->glClipPlanef = es1::ClipPlanef;
+ this->glClipPlanex = es1::ClipPlanex;
+ this->glColor4f = es1::Color4f;
+ this->glColor4ub = es1::Color4ub;
+ this->glColor4x = es1::Color4x;
+ this->glColorMask = es1::ColorMask;
+ this->glColorPointer = es1::ColorPointer;
+ this->glCompressedTexImage2D = es1::CompressedTexImage2D;
+ this->glCompressedTexSubImage2D = es1::CompressedTexSubImage2D;
+ this->glCopyTexImage2D = es1::CopyTexImage2D;
+ this->glCopyTexSubImage2D = es1::CopyTexSubImage2D;
+ this->glCullFace = es1::CullFace;
+ this->glDeleteBuffers = es1::DeleteBuffers;
+ this->glDeleteFramebuffersOES = es1::DeleteFramebuffersOES;
+ this->glDeleteRenderbuffersOES = es1::DeleteRenderbuffersOES;
+ this->glDeleteTextures = es1::DeleteTextures;
+ this->glDepthFunc = es1::DepthFunc;
+ this->glDepthMask = es1::DepthMask;
+ this->glDepthRangex = es1::DepthRangex;
+ this->glDepthRangef = es1::DepthRangef;
+ this->glDisable = es1::Disable;
+ this->glDisableClientState = es1::DisableClientState;
+ this->glDrawArrays = es1::DrawArrays;
+ this->glDrawElements = es1::DrawElements;
+ this->glEnable = es1::Enable;
+ this->glEnableClientState = es1::EnableClientState;
+ this->glFinish = es1::Finish;
+ this->glFlush = es1::Flush;
+ this->glFramebufferRenderbufferOES = es1::FramebufferRenderbufferOES;
+ this->glFramebufferTexture2DOES = es1::FramebufferTexture2DOES;
+ this->glFogf = es1::Fogf;
+ this->glFogfv = es1::Fogfv;
+ this->glFogx = es1::Fogx;
+ this->glFogxv = es1::Fogxv;
+ this->glFrontFace = es1::FrontFace;
+ this->glFrustumf = es1::Frustumf;
+ this->glFrustumx = es1::Frustumx;
+ this->glGenerateMipmapOES = es1::GenerateMipmapOES;
+ this->glGenBuffers = es1::GenBuffers;
+ this->glGenFramebuffersOES = es1::GenFramebuffersOES;
+ this->glGenRenderbuffersOES = es1::GenRenderbuffersOES;
+ this->glGenTextures = es1::GenTextures;
+ this->glGetRenderbufferParameterivOES = es1::GetRenderbufferParameterivOES;
+ this->glGetBooleanv = es1::GetBooleanv;
+ this->glGetBufferParameteriv = es1::GetBufferParameteriv;
+ this->glGetClipPlanef = es1::GetClipPlanef;
+ this->glGetClipPlanex = es1::GetClipPlanex;
+ this->glGetError = es1::GetError;
+ this->glGetFixedv = es1::GetFixedv;
+ this->glGetFloatv = es1::GetFloatv;
+ this->glGetFramebufferAttachmentParameterivOES = es1::GetFramebufferAttachmentParameterivOES;
+ this->glGetIntegerv = es1::GetIntegerv;
+ this->glGetLightfv = es1::GetLightfv;
+ this->glGetLightxv = es1::GetLightxv;
+ this->glGetMaterialfv = es1::GetMaterialfv;
+ this->glGetMaterialxv = es1::GetMaterialxv;
+ this->glGetPointerv = es1::GetPointerv;
+ this->glGetString = es1::GetString;
+ this->glGetTexParameterfv = es1::GetTexParameterfv;
+ this->glGetTexParameteriv = es1::GetTexParameteriv;
+ this->glGetTexEnvfv = es1::GetTexEnvfv;
+ this->glGetTexEnviv = es1::GetTexEnviv;
+ this->glGetTexEnvxv = es1::GetTexEnvxv;
+ this->glGetTexParameterxv = es1::GetTexParameterxv;
+ this->glHint = es1::Hint;
+ this->glIsBuffer = es1::IsBuffer;
+ this->glIsEnabled = es1::IsEnabled;
+ this->glIsFramebufferOES = es1::IsFramebufferOES;
+ this->glIsTexture = es1::IsTexture;
+ this->glIsRenderbufferOES = es1::IsRenderbufferOES;
+ this->glLightModelf = es1::LightModelf;
+ this->glLightModelfv = es1::LightModelfv;
+ this->glLightModelx = es1::LightModelx;
+ this->glLightModelxv = es1::LightModelxv;
+ this->glLightf = es1::Lightf;
+ this->glLightfv = es1::Lightfv;
+ this->glLightx = es1::Lightx;
+ this->glLightxv = es1::Lightxv;
+ this->glLineWidth = es1::LineWidth;
+ this->glLineWidthx = es1::LineWidthx;
+ this->glLoadIdentity = es1::LoadIdentity;
+ this->glLoadMatrixf = es1::LoadMatrixf;
+ this->glLoadMatrixx = es1::LoadMatrixx;
+ this->glLogicOp = es1::LogicOp;
+ this->glMaterialf = es1::Materialf;
+ this->glMaterialfv = es1::Materialfv;
+ this->glMaterialx = es1::Materialx;
+ this->glMaterialxv = es1::Materialxv;
+ this->glMatrixMode = es1::MatrixMode;
+ this->glMultMatrixf = es1::MultMatrixf;
+ this->glMultMatrixx = es1::MultMatrixx;
+ this->glMultiTexCoord4f = es1::MultiTexCoord4f;
+ this->glMultiTexCoord4x = es1::MultiTexCoord4x;
+ this->glNormal3f = es1::Normal3f;
+ this->glNormal3x = es1::Normal3x;
+ this->glNormalPointer = es1::NormalPointer;
+ this->glOrthof = es1::Orthof;
+ this->glOrthox = es1::Orthox;
+ this->glPixelStorei = es1::PixelStorei;
+ this->glPointParameterf = es1::PointParameterf;
+ this->glPointParameterfv = es1::PointParameterfv;
+ this->glPointParameterx = es1::PointParameterx;
+ this->glPointParameterxv = es1::PointParameterxv;
+ this->glPointSize = es1::PointSize;
+ this->glPointSizePointerOES = es1::PointSizePointerOES;
+ this->glPointSizex = es1::PointSizex;
+ this->glPolygonOffset = es1::PolygonOffset;
+ this->glPolygonOffsetx = es1::PolygonOffsetx;
+ this->glPopMatrix = es1::PopMatrix;
+ this->glPushMatrix = es1::PushMatrix;
+ this->glReadPixels = es1::ReadPixels;
+ this->glRenderbufferStorageOES = es1::RenderbufferStorageOES;
+ this->glRotatef = es1::Rotatef;
+ this->glRotatex = es1::Rotatex;
+ this->glSampleCoverage = es1::SampleCoverage;
+ this->glSampleCoveragex = es1::SampleCoveragex;
+ this->glScalef = es1::Scalef;
+ this->glScalex = es1::Scalex;
+ this->glScissor = es1::Scissor;
+ this->glShadeModel = es1::ShadeModel;
+ this->glStencilFunc = es1::StencilFunc;
+ this->glStencilMask = es1::StencilMask;
+ this->glStencilOp = es1::StencilOp;
+ this->glTexCoordPointer = es1::TexCoordPointer;
+ this->glTexEnvf = es1::TexEnvf;
+ this->glTexEnvfv = es1::TexEnvfv;
+ this->glTexEnvi = es1::TexEnvi;
+ this->glTexEnvx = es1::TexEnvx;
+ this->glTexEnviv = es1::TexEnviv;
+ this->glTexEnvxv = es1::TexEnvxv;
+ this->glTexImage2D = es1::TexImage2D;
+ this->glTexParameterf = es1::TexParameterf;
+ this->glTexParameterfv = es1::TexParameterfv;
+ this->glTexParameteri = es1::TexParameteri;
+ this->glTexParameteriv = es1::TexParameteriv;
+ this->glTexParameterx = es1::TexParameterx;
+ this->glTexParameterxv = es1::TexParameterxv;
+ this->glTexSubImage2D = es1::TexSubImage2D;
+ this->glTranslatef = es1::Translatef;
+ this->glTranslatex = es1::Translatex;
+ this->glVertexPointer = es1::VertexPointer;
+ this->glViewport = es1::Viewport;
+ this->glEGLImageTargetTexture2DOES = es1::EGLImageTargetTexture2DOES;
+ this->glEGLImageTargetRenderbufferStorageOES = es1::EGLImageTargetRenderbufferStorageOES;
+ this->glDrawTexsOES = es1::DrawTexsOES;
+ this->glDrawTexiOES = es1::DrawTexiOES;
+ this->glDrawTexxOES = es1::DrawTexxOES;
+ this->glDrawTexsvOES = es1::DrawTexsvOES;
+ this->glDrawTexivOES = es1::DrawTexivOES;
+ this->glDrawTexxvOES = es1::DrawTexxvOES;
+ this->glDrawTexfOES = es1::DrawTexfOES;
+ this->glDrawTexfvOES = es1::DrawTexfvOES;
+
this->es1CreateContext = ::es1CreateContext;
this->es1GetProcAddress = ::es1GetProcAddress;
this->createBackBuffer = ::createBackBuffer;
this->createDepthStencil = ::createDepthStencil;
this->createFrameBuffer = ::createFrameBuffer;
- this->glEGLImageTargetTexture2DOES = ::glEGLImageTargetTexture2DOES;
}
extern "C" GL_API LibGLES_CMexports *libGLES_CM_swiftshader()