blob: 140c0309ec5d0f330f16251127a76268c97c94fd [file] [log] [blame]
keunyoungb85b2752013-03-08 12:28:03 -08001/*
2* Copyright (C) 2011 The Android Open Source Project
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*/
16#ifndef _EGL_PROC_H
17#define _EGL_PROC_H
18
19#include <EGL/egl.h>
20#define EGL_EGLEXT_PROTOTYPES
21#include <EGL/eglext.h>
22
23typedef EGLint (* eglGetError_t) ();
24typedef EGLDisplay (* eglGetDisplay_t) (EGLNativeDisplayType);
25typedef EGLBoolean (* eglInitialize_t) (EGLDisplay, EGLint*, EGLint*);
26typedef EGLBoolean (* eglTerminate_t) (EGLDisplay);
27typedef char* (* eglQueryString_t) (EGLDisplay, EGLint);
28typedef EGLBoolean (* eglGetConfigs_t) (EGLDisplay, EGLConfig*, EGLint, EGLint*);
29typedef EGLBoolean (* eglChooseConfig_t) (EGLDisplay, const EGLint*, EGLConfig*, EGLint, EGLint*);
30typedef EGLBoolean (* eglGetConfigAttrib_t) (EGLDisplay, EGLConfig, EGLint, EGLint*);
31typedef EGLSurface (* eglCreateWindowSurface_t) (EGLDisplay, EGLConfig, EGLNativeWindowType, const EGLint*);
32typedef EGLSurface (* eglCreatePbufferSurface_t) (EGLDisplay, EGLConfig, const EGLint*);
33typedef EGLSurface (* eglCreatePixmapSurface_t) (EGLDisplay, EGLConfig, EGLNativePixmapType, const EGLint*);
34typedef EGLBoolean (* eglDestroySurface_t) (EGLDisplay, EGLSurface);
35typedef EGLBoolean (* eglQuerySurface_t) (EGLDisplay, EGLSurface, EGLint, EGLint*);
36typedef EGLBoolean (* eglBindAPI_t) (EGLenum);
37typedef EGLenum (* eglQueryAPI_t) ();
38typedef EGLBoolean (* eglWaitClient_t) ();
39typedef EGLBoolean (* eglReleaseThread_t) ();
40typedef EGLSurface (* eglCreatePbufferFromClientBuffer_t) (EGLDisplay, EGLenum, EGLClientBuffer, EGLConfig, const EGLint*);
41typedef EGLBoolean (* eglSurfaceAttrib_t) (EGLDisplay, EGLSurface, EGLint, EGLint);
42typedef EGLBoolean (* eglBindTexImage_t) (EGLDisplay, EGLSurface, EGLint);
43typedef EGLBoolean (* eglReleaseTexImage_t) (EGLDisplay, EGLSurface, EGLint);
44typedef EGLBoolean (* eglSwapInterval_t) (EGLDisplay, EGLint);
45typedef EGLContext (* eglCreateContext_t) (EGLDisplay, EGLConfig, EGLContext, const EGLint*);
46typedef EGLBoolean (* eglDestroyContext_t) (EGLDisplay, EGLContext);
47typedef EGLBoolean (* eglMakeCurrent_t) (EGLDisplay, EGLSurface, EGLSurface, EGLContext);
48typedef EGLContext (* eglGetCurrentContext_t) ();
49typedef EGLSurface (* eglGetCurrentSurface_t) (EGLint);
50typedef EGLDisplay (* eglGetCurrentDisplay_t) ();
51typedef EGLBoolean (* eglQueryContext_t) (EGLDisplay, EGLContext, EGLint, EGLint*);
52typedef EGLBoolean (* eglWaitGL_t) ();
53typedef EGLBoolean (* eglWaitNative_t) (EGLint);
54typedef EGLBoolean (* eglSwapBuffers_t) (EGLDisplay, EGLSurface);
55typedef EGLBoolean (* eglCopyBuffers_t) (EGLDisplay, EGLSurface, EGLNativePixmapType);
56typedef __eglMustCastToProperFunctionPointerType (* eglGetProcAddress_t) (const char*);
57typedef EGLBoolean (* eglLockSurfaceKHR_t) (EGLDisplay, EGLSurface, const EGLint*);
58typedef EGLBoolean (* eglUnlockSurfaceKHR_t) (EGLDisplay, EGLSurface);
59typedef EGLImageKHR (* eglCreateImageKHR_t) (EGLDisplay, EGLContext, EGLenum, EGLClientBuffer, const EGLint*);
60typedef EGLBoolean (* eglDestroyImageKHR_t) (EGLDisplay, EGLImageKHR image);
61typedef EGLSyncKHR (* eglCreateSyncKHR_t) (EGLDisplay, EGLenum, const EGLint*);
62typedef EGLBoolean (* eglDestroySyncKHR_t) (EGLDisplay, EGLSyncKHR sync);
63typedef EGLint (* eglClientWaitSyncKHR_t) (EGLDisplay, EGLSyncKHR, EGLint, EGLTimeKHR timeout);
64typedef EGLBoolean (* eglSignalSyncKHR_t) (EGLDisplay, EGLSyncKHR, EGLenum);
65typedef EGLBoolean (* eglGetSyncAttribKHR_t) (EGLDisplay, EGLSyncKHR, EGLint, EGLint*);
66typedef EGLBoolean (* eglSetSwapRectangleANDROID_t) (EGLDisplay, EGLSurface, EGLint, EGLint, EGLint, EGLint);
67
68#endif // of _EGL_PROC_H