OpenSceneGraph
OpenSceneGraph copied to clipboard
Wayland graphics support
Adds native Wayland graphics support, change summary:
- Minor build changes to link appropriate libraries and build new sources provided
libwayland-dev
andwayland-protocols
packages are available (via a newCMakeModules/FindWayland.cmake
helper). - New source:
src/osgViewer/GraphicsWindowWayland.cpp
and supporting (generated) protocols (src/osgViewer/xdg*
) to communicate with Wayland compositors. - Minor fixes to
src/osg/GraphicsContext.cpp
to automatically select a working graphics backend at startup, while allowing manual selection through an environment variableOSG_WINDOWING_SYSTEM
This applies against current master
and works with both osgviewer
and as a patch to FlightGear (my chosen test app!)
It has been independently tested by @shiptux on sway, kwin and weston compositors.