Implements Graphic-Window.
Graphic-Window impl | Implements Graphic-Window. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file Graphic-Window. |
C-kern/ | Implementation file Graphic-Window impl. |
window_t | |
static variables | |
s_window_errtimer | Allows to introduce artificial errors during test. |
helper-macros | |
INIT_OSWINDOW | Initializes the native window oswindow in an OS specific way. |
FREE_OSWINDOW | Frees oswindow in an OS specific way. |
INIT_GLWINDOW | Initializes the OpenGL part of win in an OS specific way. |
FREE_GLWINDOW | Frees the OpenGL part of the graphic display in an OS specific way. |
ISFREE_OSWINDOW | Returns true in case the OS specific window is already freed. |
lifetime | |
Functions | |
test | |
WAITFOR | Reads and handles window events until CONDITION is met. |
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-Window.
Implementation file Graphic-Window impl.
static variables | |
s_window_errtimer | Allows to introduce artificial errors during test. |
helper-macros | |
INIT_OSWINDOW | Initializes the native window oswindow in an OS specific way. |
FREE_OSWINDOW | Frees oswindow in an OS specific way. |
INIT_GLWINDOW | Initializes the OpenGL part of win in an OS specific way. |
FREE_GLWINDOW | Frees the OpenGL part of the graphic display in an OS specific way. |
ISFREE_OSWINDOW | Returns true in case the OS specific window is already freed. |
lifetime |
Reads and handles window events until CONDITION is met. Parameter disp must be of type display_t.
Allows to introduce artificial errors during test.
static test_errortimer_t s_window_errtimer
Initializes the native window oswindow in an OS specific way.
#define INIT_OSWINDOW( oswindow, disp, screennr, eventhandler, visualid, winattr ) initvid_x11window(oswindow, os_display(disp), screennr, genericcast_x11windowevh(eventhandler, window_t), (uint32_t)visualid, winattr)
Frees oswindow in an OS specific way.
#define FREE_OSWINDOW( oswindow ) free_x11window(oswindow)
Initializes the OpenGL part of win in an OS specific way.
#define INIT_GLWINDOW( win, disp, gconf ) initx11_eglwindow(&gl_window(win), gl_display(disp), gl_gconfig(gconf), &win->oswindow)
Frees the OpenGL part of the graphic display in an OS specific way.
#define FREE_GLWINDOW( win, disp ) free_eglwindow(&gl_window(win), gl_display(disp))
Returns true in case the OS specific window is already freed.
#define ISFREE_OSWINDOW( oswindow ) isfree_x11window(oswindow)
Wraps the OS specific graphics display.
struct display_t