summaryrefslogtreecommitdiffstats
path: root/libEGL_POWERVR/egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'libEGL_POWERVR/egl.c')
-rw-r--r--libEGL_POWERVR/egl.c171
1 files changed, 171 insertions, 0 deletions
diff --git a/libEGL_POWERVR/egl.c b/libEGL_POWERVR/egl.c
new file mode 100644
index 0000000..b5ebeca
--- /dev/null
+++ b/libEGL_POWERVR/egl.c
@@ -0,0 +1,171 @@
+#include "egl.h"
+
+EGLint eglGetError(void)
+{
+ return IMGeglGetError();
+}
+
+EGLDisplay eglGetDisplay(EGLNativeDisplayType display_id)
+{
+ return IMGeglGetDisplay(display_id);
+}
+
+EGLBoolean eglInitialize(EGLDisplay dpy, EGLint *major, EGLint *minor)
+{
+ return IMGeglInitialize(dpy, major, minor);
+}
+
+EGLBoolean eglTerminate(EGLDisplay dpy)
+{
+ return IMGeglTerminate(dpy);
+}
+
+const char * eglQueryString(EGLDisplay dpy, EGLint name)
+{
+ return IMGeglQueryString(dpy, name);
+}
+
+void (* eglGetProcAddress(const char *procname))(void)
+{
+ return IMGeglGetProcAddress(procname);
+}
+
+EGLBoolean eglGetConfigs(EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config)
+{
+ return IMGeglGetConfigs(dpy, configs, config_size, num_config);
+}
+
+EGLBoolean eglChooseConfig(EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config)
+{
+ return IMGeglChooseConfig(dpy, attrib_list, configs, config_size, num_config);
+}
+
+EGLBoolean eglGetConfigAttrib(EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value)
+{
+ return IMGeglGetConfigAttrib(dpy, config, attribute, value);
+}
+
+EGLSurface eglCreateWindowSurface(EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list)
+{
+ return IMGeglCreateWindowSurface(dpy, config, win, attrib_list);
+}
+
+EGLSurface eglCreatePixmapSurface(EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list)
+{
+ return IMGeglCreatePixmapSurface(dpy, config, pixmap, attrib_list);
+}
+
+EGLSurface eglCreatePbufferSurface(EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list)
+{
+ return IMGeglCreatePbufferSurface(dpy, config, attrib_list);
+}
+
+EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface)
+{
+ return IMGeglDestroySurface(dpy, surface);
+}
+
+EGLBoolean eglQuerySurface(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value)
+{
+ return IMGeglQuerySurface(dpy, surface, attribute, value);
+}
+
+EGLContext eglCreateContext(EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list)
+{
+ return IMGeglCreateContext(dpy, config, share_context, attrib_list);
+}
+
+EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx)
+{
+ return IMGeglDestroyContext(dpy, ctx);
+}
+
+EGLBoolean eglMakeCurrent(EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx)
+{
+ return IMGeglMakeCurrent(dpy, draw, read, ctx);
+}
+
+EGLContext eglGetCurrentContext(void)
+{
+ return IMGeglGetCurrentContext();
+}
+
+EGLSurface eglGetCurrentSurface(EGLint readdraw)
+{
+ return IMGeglGetCurrentSurface(readdraw);
+}
+
+EGLDisplay eglGetCurrentDisplay(void)
+{
+ return IMGeglGetCurrentDisplay();
+}
+
+EGLBoolean eglQueryContext(EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value)
+{
+ return IMGeglQueryContext(dpy, ctx, attribute, value);
+}
+
+EGLBoolean eglWaitGL(void)
+{
+ return IMGeglWaitGL();
+}
+
+EGLBoolean eglWaitNative(EGLint engine)
+{
+ return IMGeglWaitNative(engine);
+}
+
+EGLBoolean eglSwapBuffers(EGLDisplay dpy, EGLSurface draw)
+{
+ return IMGeglSwapBuffers(dpy, draw);
+}
+
+EGLBoolean eglCopyBuffers(EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target)
+{
+ return IMGeglCopyBuffers(dpy, surface, target);
+}
+
+EGLBoolean eglSwapInterval(EGLDisplay dpy, EGLint interval)
+{
+ return IMGeglSwapInterval(dpy, interval);
+}
+
+EGLBoolean eglSurfaceAttrib(EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value)
+{
+ return IMGeglSurfaceAttrib(dpy, surface, attribute, value);
+}
+
+EGLBoolean eglBindTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
+{
+ return IMGeglBindTexImage(dpy, surface, buffer);
+}
+
+EGLBoolean eglReleaseTexImage(EGLDisplay dpy, EGLSurface surface, EGLint buffer)
+{
+ return IMGeglReleaseTexImage(dpy, surface, buffer);
+}
+
+EGLSurface eglCreatePbufferFromClientBuffer(EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list)
+{
+ return IMGeglCreatePbufferFromClientBuffer(dpy, buftype, buffer, config, attrib_list);
+}
+
+EGLBoolean eglBindAPI(EGLenum api)
+{
+ return IMGeglBindAPI(api);
+}
+
+EGLenum eglQueryAPI(void)
+{
+ return IMGeglQueryAPI();
+}
+
+EGLBoolean eglWaitClient(void)
+{
+ return IMGeglWaitClient();
+}
+
+EGLBoolean eglReleaseThread(void)
+{
+ return IMGeglReleaseThread();
+}