GLUS
glus_egl.h
Go to the documentation of this file.
1 /*
2  * GLUS - Modern OpenGL, OpenGL ES and OpenVG Utilities. Copyright (C) since 2010 Norbert Nopper
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef GLUS_EGL_H_
19 #define GLUS_EGL_H_
20 
33 GLUSAPI EGLBoolean GLUSAPIENTRY glusEGLCreateContext(EGLNativeDisplayType eglNativeDisplayType, EGLDisplay* eglDisplay, EGLConfig* eglConfig, EGLContext *eglContext, const EGLint configAttribList[], const EGLint contextAttribList[]);
34 
46 GLUSAPI EGLBoolean GLUSAPIENTRY glusEGLCreateWindowSurfaceMakeCurrent(EGLNativeWindowType eglNativeWindowType, EGLDisplay* eglDisplay, EGLConfig* eglConfig, EGLContext* eglContext, EGLSurface* eglSurface);
47 
54 
61 
68 
76 GLUSAPI GLUSvoid GLUSAPIENTRY glusEGLTerminate(EGLDisplay* eglDisplay, EGLContext* eglContext, EGLSurface* eglSurface);
77 
78 #endif /* GLUS_EGL_H_ */
GLUSAPI EGLContext GLUSAPIENTRY glusEGLGetDefaultContext(GLUSvoid)
Returns the created default EGL context.
Definition: glus_window_egl_es.c:450
void GLUSvoid
Definition: glus_typedef.h:51
GLUSAPI EGLBoolean GLUSAPIENTRY glusEGLCreateWindowSurfaceMakeCurrent(EGLNativeWindowType eglNativeWindowType, EGLDisplay *eglDisplay, EGLConfig *eglConfig, EGLContext *eglContext, EGLSurface *eglSurface)
Creates a window surface and sets it as current.
Definition: glus_egl_es.c:103
GLUSAPI EGLSurface GLUSAPIENTRY glusEGLGetDefaultSurface(GLUSvoid)
Returns the created default EGL surface.
Definition: glus_window_egl_es.c:445
GLUSAPI EGLBoolean GLUSAPIENTRY glusEGLCreateContext(EGLNativeDisplayType eglNativeDisplayType, EGLDisplay *eglDisplay, EGLConfig *eglConfig, EGLContext *eglContext, const EGLint configAttribList[], const EGLint contextAttribList[])
Creates the context and all needed EGL elements.
Definition: glus_egl_es.c:20
GLUSAPI EGLDisplay GLUSAPIENTRY glusEGLGetDefaultDisplay(GLUSvoid)
Returns the created default EGL display.
Definition: glus_window_egl_es.c:440
GLUSAPI GLUSvoid GLUSAPIENTRY glusEGLTerminate(EGLDisplay *eglDisplay, EGLContext *eglContext, EGLSurface *eglSurface)
Terminates EGL an frees all resources.
Definition: glus_egl_es.c:140
#define GLUSAPI
Definition: glus_function.h:38
#define GLUSAPIENTRY
Definition: glus_function.h:31
int EGLint
Definition: glus.h:57