Implements the binding of a native os-specific graphics display to OpenGL / OpenGLES. The implementation uses the EGL API which adapts OpenGL to the native windowing system.
EGL-Display | Implements the binding of a native os-specific graphics display to OpenGL / OpenGLES. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file EGL-Display. |
C-kern/ | Implementation file EGL-Display impl. |
Types | |
opengl_display_t | Type which tags the native implementation of an OpenGL capable display. |
struct egldisplay_t | Export egldisplay_t into global namespace. |
Functions | |
test | |
unittest_platform_opengl_egl_egldisplay | Test egldisplay_t functionality. |
egldisplay_t | Wrapper of a native display type. |
lifetime | |
egldisplay_FREE | Static initializer. |
initdefault_egldisplay | Initializes egldisp with the default display connection. |
initx11_egldisplay | Initializes egldisp with x11disp. |
free_egldisplay | Frees all associated resources with a display. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2014 Jörg Seebohn
Header file EGL-Display.
Implementation file EGL-Display impl.
Export egldisplay_t into global namespace.
test | |
unittest_platform_opengl_egl_egldisplay | Test egldisplay_t functionality. |
int unittest_platform_opengl_egl_egldisplay( void )
Test egldisplay_t functionality.
typedef struct opengl_display_t * egldisplay_t
Wrapper of a native display type. Adds additional information used by OpenGL / EGL.
lifetime | |
egldisplay_FREE | Static initializer. |
initdefault_egldisplay | Initializes egldisp with the default display connection. |
initx11_egldisplay | Initializes egldisp with x11disp. |
free_egldisplay | Frees all associated resources with a display. |
int initx11_egldisplay( /*out*/egldisplay_t * egldisp, struct x11display_t * x11disp )
Initializes egldisp with x11disp. Returns EINVAL if x11disp is not initialized or invalid or EALLOC if the egl specific part could not be initialized. Do not free x11disp as long as egldisp is not freed.
Type which tags the native implementation of an OpenGL capable display.
typedef struct opengl_display_t opengl_display_t
Wrapper of a native display type.
typedef struct opengl_display_t * egldisplay_t
Test egldisplay_t functionality.
int unittest_platform_opengl_egl_egldisplay( void )
Static initializer.
#define egldisplay_FREE 0
Initializes egldisp with the default display connection.
int initdefault_egldisplay( /*out*/egldisplay_t * egldisp )
Initializes egldisp with x11disp.
int initx11_egldisplay( /*out*/egldisplay_t * egldisp, struct x11display_t * x11disp )
Frees all associated resources with a display.
int free_egldisplay( egldisplay_t * egldisp )