Implement initial Wayland support
authorManuel Bachmann <manuel.bachmann@open.eurogiciel.org>
Sat, 4 Apr 2015 18:43:27 +0000 (18:43 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Sat, 4 Apr 2015 18:43:27 +0000 (18:43 +0000)
commit7ce62fee66f89db514ed1b80e6c3aa287a2f8d74
treecd1d017574ccb999ddb891e34af607645fc7b7d8
parent1592c962040f4a32ac1074f458b503db80241e58
Implement initial Wayland support

This commit creates a new "wayland" backend, which can be
activated at configure time with "-DFREEGLUT_WAYLAND=ON".

If done so, it will be used instead of X11 (building both
and doing runtime detection may become possible later).
Please note that if you choose to use GL instead of GLES
(by not specifying "-DFREEGLUT_GLES=ON"), then libX11
will still be pulled as an indirect dependency.

Following features are still WIP :
- menus (not implemented, TODO) ;
- client-side decorations (not implemented, required
  because Wayland shells do not draw title bars nor
  resize grips, TODO) ;
- game mode (code is commented out, depends on WIP
  protocols tested upstream, WAIT FOR UPSTREAM) ;
- window visibility states (code is commented out,
  depends on xdg-shell protocol, TODO).

Signed-off-by: Manuel Bachmann <tarnyko@tarnyko.net>

git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1758 7f0cb862-5218-0410-a997-914c9d46530a
13 files changed:
CMakeLists.txt
src/egl/fg_init_egl.c
src/fg_internal.h
src/wayland/fg_cursor_wl.c [new file with mode: 0644]
src/wayland/fg_ext_wl.c [new file with mode: 0644]
src/wayland/fg_gamemode_wl.c [new file with mode: 0644]
src/wayland/fg_init_wl.c [new file with mode: 0644]
src/wayland/fg_input_devices_wl.c [new file with mode: 0644]
src/wayland/fg_internal_wl.h [new file with mode: 0644]
src/wayland/fg_main_wl.c [new file with mode: 0644]
src/wayland/fg_state_wl.c [new file with mode: 0644]
src/wayland/fg_structure_wl.c [new file with mode: 0644]
src/wayland/fg_window_wl.c [new file with mode: 0644]