Implements Graphic-Display.
Graphic-Display impl | Implements Graphic-Display. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file Graphic-Display. |
C-kern/ | Implementation file Graphic-Display impl. |
display_t | |
static variables | |
s_display_errtimer | Allows to introduce artificial errors. |
s_display_noext | Allows to initialize an X11 display without extensions. |
helper-macros | |
OSDISPLAY_DEFAULTNAME | Defines default display name to connect with the default screen. |
INIT_OSDISPLAY | Initializes the graphic display in an OS specific way. |
FREE_OSDISPLAY | Frees the graphic display in an OS specific way. |
INIT_OPENGL | Initializes the OpenGL part of the graphic display in an OS specific way. |
FREE_OPENGL | Frees the OpenGL part of the graphic display in an OS specific way. |
ISFREE_OSDISPLAY | Returns true in case the OS specific display is already freed. |
lifetime | |
Functions | |
test |
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 Graphic-Display.
Implementation file Graphic-Display impl.
static variables | |
s_display_errtimer | Allows to introduce artificial errors. |
s_display_noext | Allows to initialize an X11 display without extensions. |
helper-macros | |
OSDISPLAY_DEFAULTNAME | Defines default display name to connect with the default screen. |
INIT_OSDISPLAY | Initializes the graphic display in an OS specific way. |
FREE_OSDISPLAY | Frees the graphic display in an OS specific way. |
INIT_OPENGL | Initializes the OpenGL part of the graphic display in an OS specific way. |
FREE_OPENGL | Frees the OpenGL part of the graphic display in an OS specific way. |
ISFREE_OSDISPLAY | Returns true in case the OS specific display is already freed. |
lifetime |
Allows to introduce artificial errors.
static test_errortimer_t s_display_errtimer
Allows to initialize an X11 display without extensions.
static bool s_display_noext
Defines default display name to connect with the default screen.
#define OSDISPLAY_DEFAULTNAME 0
Initializes the graphic display in an OS specific way.
#define INIT_OSDISPLAY( disp, display_selector ) (s_display_noext ? init2_x11display(&(disp)->osdisplay, display_selector, false) : init_x11display(&(disp)->osdisplay, display_selector))
Frees the graphic display in an OS specific way.
#define FREE_OSDISPLAY( disp ) free_x11display(&(disp)->osdisplay)
Initializes the OpenGL part of the graphic display in an OS specific way.
#define INIT_OPENGL( disp ) initx11_egldisplay(&(disp)->gldisplay, &(disp)->osdisplay)
Frees the OpenGL part of the graphic display in an OS specific way.
#define FREE_OPENGL( disp ) free_egldisplay(&(disp)->gldisplay)
Returns true in case the OS specific display is already freed.
#define ISFREE_OSDISPLAY( disp ) isfree_x11display(disp)